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:
Adrian Schmutzler 2021-01-31 13:34:28 +01:00
parent 40f26d74a7
commit 0475fe01f0
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,5 @@
[ -s /etc/config/nodewatcher ] && exit 0
touch /etc/config/nodewatcher
uci batch >/dev/null <<EOF