inteno-netmodes: netmode-client-detect: do not run timed_check in background

This commit is contained in:
Sukru Senli 2017-06-22 15:05:17 +02:00
parent 34472e7e46
commit 92e23a0bfc

View file

@ -8,11 +8,8 @@
local action ipaddr macaddr network
timed_check() {
while true; do
ubus call repeater get_creds '{"network":"lan","file":"/tmp/wificontrol.txt"}'
wificontrol --router
sleep $1
done
ubus call repeater get_creds '{"network":"lan","file":"/tmp/wificontrol.txt"}'
wificontrol --router
}
is_inteno_macaddr()
@ -31,8 +28,6 @@ is_inteno_macaddr()
false
}
timed_check 60 &
while true ; do
ubus -t 60 listen client | \
while read event ; do
@ -51,4 +46,7 @@ while true ; do
/sbin/wificontrol --router --destination $ipaddr
fi
done
sleep 5
timed_check
done