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:
Adrian Schmutzler 2018-07-08 19:57:38 +02:00 committed by Tim Niemeyer
parent 9351f226ba
commit 4a266c8301
2 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,7 @@
hoodfiletmp="/tmp/hoodfile"
hoodfileref="/tmp/hoodfileref"
hoodfilewww="/www/hood/keyxchangev2data"
hoodfilewww="/tmp/hoodfilewww"
getJsonPath() {
jsonfile=""

View File

@ -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