cleaner shell command to wait for network
This commit is contained in:
parent
46e8c23466
commit
45a2bcf34e
@ -6,7 +6,7 @@ exec 1> >(logger -s -t $(basename $0)) 2>&1
|
|||||||
|
|
||||||
echo "waiting for network to come up..."
|
echo "waiting for network to come up..."
|
||||||
|
|
||||||
until ping -c1 www.google.com >/dev/null 2>&1; do :; done
|
while sleep 1; do ping -c1 www.google.com > /dev/null && break; done
|
||||||
|
|
||||||
echo "network is now up, running scripts"
|
echo "network is now up, running scripts"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user