From e21b01b97e84f81589f52e087d2b2ac53f0bf144 Mon Sep 17 00:00:00 2001 From: iucoen <68678186+iucoen@users.noreply.github.com> Date: Mon, 29 Nov 2021 21:03:13 -0800 Subject: 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. --- init.d/net-online.in | 1 + 1 file changed, 1 insertion(+) diff --git a/init.d/net-online.in b/init.d/net-online.in index 4f59cc14..bcceb57c 100644 --- a/init.d/net-online.in +++ b/init.d/net-online.in @@ -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 -- cgit v1.2.3