mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-07 01:41:25 +01:00
inteno-netmodes: netmode-client-detect: do not run timed_check in background
This commit is contained in:
parent
34472e7e46
commit
92e23a0bfc
1 changed files with 5 additions and 7 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue