Create internet-check.sh

pull/199/head
tteckster 3 years ago committed by GitHub
parent 1730d5326e
commit 28b0fcdce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,7 @@
#!/usr/bin/env bash -ex
wget -q --tries=10 --timeout=5 --spider http://google.com
if [[ $? -eq 0 ]]; then
echo -e "Internet Online"
else
echo -e "Internet Offline"
fi
Loading…
Cancel
Save

Powered by BW's shoe-string budget.