forked from freifunk-franken/firmware
makes nodewatcher config a uci-defaults script
Signed-off-by: Tobias Klaus <tk+ff@meskal.net> Reviewed-by: Jan Kraus <mayosemmel@gmail.com>
This commit is contained in:
parent
d16f7cdc0a
commit
006d92b4ef
|
@ -1,10 +0,0 @@
|
|||
config 'script'
|
||||
option 'error_level' '0'
|
||||
option 'logfile' '/var/log/nodewatcher.log'
|
||||
option 'data_file' '/tmp/crawldata/node.data'
|
||||
option 'status_text_file' '/tmp/status.txt'
|
||||
|
||||
config 'network'
|
||||
option 'mesh_interface' 'br-mesh'
|
||||
option 'iface_blacklist' 'lo ifb0' # This devices won't be sent to netmon at all
|
||||
option 'ip_whitelist' 'br-mesh' # For this devices the IPs will be sent to netmon
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
touch /etc/config/nodewatcher
|
||||
|
||||
uci batch <<EOF
|
||||
add nodewatcher script
|
||||
set nodewatcher.@script[0].error_level='0'
|
||||
set nodewatcher.@script[0].logfile='/var/log/nodewatcher.log'
|
||||
set nodewatcher.@script[0].data_file='/tmp/crawldata/node.data'
|
||||
set nodewatcher.@script[0].status_text_file='/tmp/status.txt'
|
||||
add nodewatcher network
|
||||
set nodewatcher.@network[0].mesh_interface='br-mesh'
|
||||
set nodewatcher.@network[0].iface_blacklist='lo ifb0'
|
||||
set nodewatcher.@network[0].ip_whitelist='br-mesh'
|
||||
EOF
|
||||
uci commit
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue