net-online: add missing sleep 1 in ping loop
Currently the ping loop instantly times out because timeout is decremented by 1 without actually going to sleep. This fixes #480.
This commit is contained in:
parent
a182f6e5f1
commit
e21b01b97e
@ -68,6 +68,7 @@ start ()
|
|||||||
ping -c 1 $ping_test_host > /dev/null 2>&1
|
ping -c 1 $ping_test_host > /dev/null 2>&1
|
||||||
rc=$?
|
rc=$?
|
||||||
[ $rc -eq 0 ] && break
|
[ $rc -eq 0 ] && break
|
||||||
|
sleep 1
|
||||||
: $((timeout -= 1))
|
: $((timeout -= 1))
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user