-
-
Save Tryum/c5f71bd92aede65a3ba33cc5cf481087 to your computer and use it in GitHub Desktop.
google ping
This file contains 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
function ping_gw() { | |
ping -c 1 google.com > /dev/null && return 0 || return 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment