2021-01-31 13:34:28 +01:00
|
|
|
[ -s /etc/config/nodewatcher ] && exit 0
|
|
|
|
|
2016-06-08 10:24:08 +02:00
|
|
|
touch /etc/config/nodewatcher
|
|
|
|
|
2021-01-31 13:27:09 +01:00
|
|
|
uci batch >/dev/null <<EOF
|
2016-06-08 10:24:08 +02:00
|
|
|
add nodewatcher script
|
2020-01-07 14:40:21 +01:00
|
|
|
set nodewatcher.@script[-1].data_file='/tmp/crawldata/node.data'
|
|
|
|
set nodewatcher.@script[-1].status_text_file='/tmp/status.txt'
|
2021-01-31 13:27:09 +01:00
|
|
|
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'
|
2016-06-08 10:24:08 +02:00
|
|
|
EOF
|
2020-01-07 14:40:21 +01:00
|
|
|
uci commit nodewatcher
|
2016-06-08 10:24:08 +02:00
|
|
|
|
|
|
|
exit 0
|