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>
This commit is contained in:
parent
e3954fddf5
commit
b08694359a
|
@ -1,7 +1,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=fff-network
|
||||
PKG_RELEASE:=28
|
||||
PKG_RELEASE:=29
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
uci batch <<EOF
|
||||
add nodewatcher network
|
||||
set nodewatcher.@network[-1].mesh_interface='br-client'
|
||||
set nodewatcher.@network[-1].iface_blacklist='lo ifb0'
|
||||
set nodewatcher.@network[-1].ip_whitelist='br-client'
|
||||
EOF
|
||||
uci commit nodewatcher
|
||||
|
||||
exit 0
|
|
@ -1,7 +1,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=fff-nodewatcher
|
||||
PKG_RELEASE:=60
|
||||
PKG_RELEASE:=61
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
touch /etc/config/nodewatcher
|
||||
|
||||
uci batch <<EOF
|
||||
uci batch >/dev/null <<EOF
|
||||
add nodewatcher script
|
||||
set nodewatcher.@script[-1].data_file='/tmp/crawldata/node.data'
|
||||
set nodewatcher.@script[-1].status_text_file='/tmp/status.txt'
|
||||
add nodewatcher network
|
||||
set nodewatcher.@network[-1].mesh_interface='br-client'
|
||||
set nodewatcher.@network[-1].iface_blacklist='lo ifb0'
|
||||
set nodewatcher.@network[-1].ip_whitelist='br-client'
|
||||
EOF
|
||||
uci commit nodewatcher
|
||||
|
||||
|
|
Loading…
Reference in New Issue