cleaner shell command to wait for network

This commit is contained in:
Jeffrey Paul 2019-10-04 07:13:54 -07:00
parent 46e8c23466
commit 45a2bcf34e
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ exec 1> >(logger -s -t $(basename $0)) 2>&1
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"