forked from freifunk-franken/firmware
hood files: Move files from /www to /tmp and link there
With this patch, changing the hood file happens in memory, so we do not have to write on flash "frequently". Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Robert Langhammer <rlanghammer@web.de> Reviewed-by: Fabian Bläse <fabian@blaese.de> Tested-by: Fabian Bläse <fabian@blaese.de> Reviewed-by: Tim Niemeyer <tim@tn-x.org>
This commit is contained in:
parent
9351f226ba
commit
4a266c8301
|
@ -6,7 +6,7 @@
|
|||
|
||||
hoodfiletmp="/tmp/hoodfile"
|
||||
hoodfileref="/tmp/hoodfileref"
|
||||
hoodfilewww="/www/hood/keyxchangev2data"
|
||||
hoodfilewww="/tmp/hoodfilewww"
|
||||
|
||||
getJsonPath() {
|
||||
jsonfile=""
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
. /lib/functions/fff/keyxchange
|
||||
|
||||
ln -s "$hoodfilewww" /www/hood/keyxchangev2data
|
||||
|
||||
uci batch <<EOF
|
||||
delete uhttpd.main
|
||||
delete uhttpd.public
|
||||
|
|
Loading…
Reference in New Issue