2022-04-24 04:14:46 -04:00
|
|
|
#!/usr/bin/env bash -ex
|
2022-04-24 04:29:20 -04:00
|
|
|
CM="${GN}✓${CL}"
|
|
|
|
CROSS="${RD}✗${CL}"
|
2022-04-24 04:14:46 -04:00
|
|
|
wget -q --tries=10 --timeout=5 --spider http://google.com
|
|
|
|
if [[ $? -eq 0 ]]; then
|
2022-04-24 04:29:20 -04:00
|
|
|
echo -e "${CM} Internet Online"
|
2022-04-24 04:14:46 -04:00
|
|
|
else
|
2022-04-24 04:29:20 -04:00
|
|
|
echo -e "${CROSS} Internet Offline"
|
2022-04-24 04:14:46 -04:00
|
|
|
fi
|
2022-04-24 04:17:02 -04:00
|
|
|
# bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/internet-check.sh)"
|