2022-04-24 04:14:46 -04:00
|
|
|
#!/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
|
2022-04-24 04:17:02 -04:00
|
|
|
# bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/internet-check.sh)"
|