testnet: fix refs #15840

This commit is contained in:
Robin Stjerndorff 2018-10-08 15:19:41 +02:00 committed by Sukru Senli
parent 7ba9214992
commit e465e76dd9

View file

@ -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"}'