Update internet-check.sh

This commit is contained in:
tteckster 2022-04-24 04:29:20 -04:00 committed by GitHub
parent d7f10ae014
commit 8053a2ffb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,10 @@
#!/usr/bin/env bash -ex
CM="${GN}${CL}"
CROSS="${RD}${CL}"
wget -q --tries=10 --timeout=5 --spider http://google.com
if [[ $? -eq 0 ]]; then
echo -e "Internet Online"
echo -e "${CM} Internet Online"
else
echo -e "Internet Offline"
echo -e "${CROSS} Internet Offline"
fi
# bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/internet-check.sh)"