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
|
||||
rc=$?
|
||||
[ $rc -eq 0 ] && break
|
||||
sleep 1
|
||||
: $((timeout -= 1))
|
||||
done
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user