aboutsummaryrefslogtreecommitdiff
path: root/init.d/net-online.in
diff options
context:
space:
mode:
authoriucoen <68678186+iucoen@users.noreply.github.com>2021-11-29 21:03:13 -0800
committerWilliam Hubbs <w.d.hubbs@gmail.com>2021-12-12 19:17:16 -0600
commite21b01b97e84f81589f52e087d2b2ac53f0bf144 (patch)
tree3fd18998b505f58ea676b72b845adabc6eb75f80 /init.d/net-online.in
parenta182f6e5f1afee90d7bda13b2eef1e3483b5fef8 (diff)
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.
Diffstat (limited to 'init.d/net-online.in')
-rw-r--r--init.d/net-online.in1
1 files changed, 1 insertions, 0 deletions
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