瀏覽代碼

Update internet-check.sh

tteckster 3 年之前
父節點
當前提交
8053a2ffb0
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      misc/internet-check.sh

+ 4 - 2
misc/internet-check.sh

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