Last active
August 2, 2018 06:43
-
-
Save qoobaa/4ce232e7ab40b1e8515b83a840fbc213 to your computer and use it in GitHub Desktop.
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
if ping -q -c 5 -W 1 192.168.1.1 > /dev/null; then | |
echo "IPv4 is up" | |
else | |
echo "IPv4 is down" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment