mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
inteno-netmodes: client-detect: added a timed check every 60 sec
This commit is contained in:
parent
a814d37e2b
commit
7fc6da3a66
1 changed files with 10 additions and 0 deletions
|
|
@ -7,6 +7,16 @@
|
|||
|
||||
local action ipaddr macaddr network
|
||||
|
||||
timed_check() {
|
||||
while true; do
|
||||
wificontrol --router
|
||||
sleep $1
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
timed_check 60 &
|
||||
|
||||
ubus listen client | \
|
||||
while read event ; do
|
||||
#echo "netmode-client-detect got event: $event" >/dev/console
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue