Skip to content

Instantly share code, notes, and snippets.

@caiquecastro
Created January 13, 2016 13:49
Show Gist options
  • Save caiquecastro/445274ed9766a32c0e45 to your computer and use it in GitHub Desktop.
Save caiquecastro/445274ed9766a32c0e45 to your computer and use it in GitHub Desktop.
#!/bin/bash
while ! ping -n -c 1 8.8.8.8
do
sleep 10
done
echo "network is working"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment