From 8053a2ffb04284539980c7a99e182e3654082a3d Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 24 Apr 2022 04:29:20 -0400 Subject: [PATCH] Update internet-check.sh --- misc/internet-check.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/misc/internet-check.sh b/misc/internet-check.sh index b41d7bfb..e3593772 100644 --- a/misc/internet-check.sh +++ b/misc/internet-check.sh @@ -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)"