forked from freifunk-franken/firmware
fff-nodewatcher: only run uci-defaults once
If /etc/config/nodewatcher already exists, a proper uci-defaults script should not overwrite it. Since this package is the owner of the config file, this change won't change anything for the current firmware, but will allow to use this as a package, too. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
parent
40f26d74a7
commit
0475fe01f0
|
@ -1,3 +1,5 @@
|
||||||
|
[ -s /etc/config/nodewatcher ] && exit 0
|
||||||
|
|
||||||
touch /etc/config/nodewatcher
|
touch /etc/config/nodewatcher
|
||||||
|
|
||||||
uci batch >/dev/null <<EOF
|
uci batch >/dev/null <<EOF
|
||||||
|
|
Loading…
Reference in New Issue
Block a user