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>
This commit is contained in:
Adrian Schmutzler 2021-01-31 13:34:28 +01:00
parent b08694359a
commit 2a970972a3
2 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=fff-nodewatcher
PKG_RELEASE:=61
PKG_RELEASE:=62
include $(INCLUDE_DIR)/package.mk

View File

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