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 authored and William Hubbs committed 2021-12-12 19:17:16 -06:00
1 parent a182f6e5f1
commit e21b01b97e
1 file changed
+1
+1
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