From 0475fe01f04f518bf7cd6f45aa575cf48dcd1dd4 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Sun, 31 Jan 2021 13:34:28 +0100 Subject: [PATCH] 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 Reviewed-by: Robert Langhammer --- .../fff-nodewatcher/files/etc/uci-defaults/93-fff-nodewatcher | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/packages/fff/fff-nodewatcher/files/etc/uci-defaults/93-fff-nodewatcher b/src/packages/fff/fff-nodewatcher/files/etc/uci-defaults/93-fff-nodewatcher index 8b3a91f1..e8b0251a 100644 --- a/src/packages/fff/fff-nodewatcher/files/etc/uci-defaults/93-fff-nodewatcher +++ b/src/packages/fff/fff-nodewatcher/files/etc/uci-defaults/93-fff-nodewatcher @@ -1,3 +1,5 @@ +[ -s /etc/config/nodewatcher ] && exit 0 + touch /etc/config/nodewatcher uci batch >/dev/null <