Created
October 1, 2013 18:48
-
-
Save mkuipers/6783177 to your computer and use it in GitHub Desktop.
when your internet is down, this will help you determine when it's back up..
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true | |
do | |
ping -c 1 -t 1 8.8.8.8 | |
if [ $? -eq 0 ] | |
then `say internet is up` | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment