You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
399 B

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

Powered by BW's shoe-string budget.