fff-nodewatcher: Improve package #99

Closed
adschm wants to merge 4 commits from adschm:nodew into master

4 Commits

Author SHA1 Message Date
Adrian Schmutzler 43ac6a5daa fff-nodewatcher: add config option to disable nodewatcher
This adds an option 'disabled' that will allow to disable
nodewatcher when desired.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-01-31 13:57:11 +01:00
Adrian Schmutzler fba996f30f fff-nodewatcher: specify config file as config file
This package is the owner of the config file, so add it to the
Makefile. This will have vanilla OpenWrt copy it during upgrade.

Since we disable this mechanism, it will not change anything for
our standard firmware.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-01-31 13:50:40 +01:00
Adrian Schmutzler 2a970972a3 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>
2021-01-31 13:40:22 +01:00
Adrian Schmutzler b08694359a fff-nodewatcher: consolidate uci-defaults scripts
The uci-defaults scripts are meant to provide defaults for a
specific package. Distributing them across several packages makes
no sense and just makes maintainance worse.

Thus, move the network part of the initialization back to the
proper package. While at it, suppress output from add commands.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-01-31 13:40:00 +01:00