mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
testnet: fix refs #15840
This commit is contained in:
parent
7ba9214992
commit
e465e76dd9
1 changed files with 5 additions and 0 deletions
|
|
@ -51,6 +51,11 @@ ping_uplink()
|
||||||
elif [ "$hasmode" == "1" ]; then
|
elif [ "$hasmode" == "1" ]; then
|
||||||
arping -f -q -c1 -w3 -I $device $ipaddr
|
arping -f -q -c1 -w3 -I $device $ipaddr
|
||||||
[ $? -eq 1 ] && rv=0 || rv=1
|
[ $? -eq 1 ] && rv=0 || rv=1
|
||||||
|
|
||||||
|
if [ "$rv" == "0" ]; then
|
||||||
|
ping -c2 -w5 $ipaddr >/dev/null
|
||||||
|
[ $? -eq 1 ] && rv=0 || rv=1
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
SLEEP_TIME=5
|
SLEEP_TIME=5
|
||||||
ubus call led.internet set '{"state" : "off"}'
|
ubus call led.internet set '{"state" : "off"}'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue