internet-check.sh 275 B

12345678
  1. #!/usr/bin/env bash -ex
  2. wget -q --tries=10 --timeout=5 --spider http://google.com
  3. if [[ $? -eq 0 ]]; then
  4. echo -e "Internet Online"
  5. else
  6. echo -e "Internet Offline"
  7. fi
  8. # bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/internet-check.sh)"