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:
iucoen 2021-11-29 21:03:13 -08:00 committed by William Hubbs
parent a182f6e5f1
commit e21b01b97e

View File

@ -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