forked from freifunk-franken/firmware
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> Reviewed-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
parent
811fdac32d
commit
40f26d74a7
|
@ -1,7 +1,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=fff-network
|
||||
PKG_RELEASE:=36
|
||||
PKG_RELEASE:=37
|
||||
|
||||
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,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
Block a user