Guest User

Untitled

a guest
Mar 18th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. #!/bin/bash/
  2.  
  3. if ping -q -c 1 -W 1 8.8.8.8 > /dev/null
  4. then
  5. echo "Connection (IPv4) is up"
  6. else
  7. echo "Connection (IPv4) is down"
  8. fi
Add Comment
Please, Sign In to add comment