From 21356d590418e86cff6bd244afcfc504d4bf7363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=B5=E4=BA=8C?= <66155308+miaoermua@users.noreply.github.com> Date: Wed, 27 Dec 2023 22:02:59 +0800 Subject: [PATCH] Update cattools.sh --- cattools.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cattools.sh b/cattools.sh index 607dc11..04cf0d7 100644 --- a/cattools.sh +++ b/cattools.sh @@ -9,6 +9,7 @@ DEFAULT_IP="192.168.1.4" RELEASE="/etc/catwrt_release" +OPENWRT_RELEASE"/etc/openwrt_release" AMD64_REPO="https://fastly.jsdelivr.net/gh/miaoermua/cattools@main/repo/amd64/distfeeds.conf" MT798X_REPO="https://fastly.jsdelivr.net/gh/miaoermua/cattools@main/repo/mt798x/distfeeds.conf" AMD64_EFI_SYSUP="https://github.com/miaoermua/CatWrt/releases/download/v23.8/CatWrt.v23.8.x86_64-squashfs-combined-efi.img.gz" @@ -21,10 +22,7 @@ if [ $(id -u) != "0" ]; then exit 1 fi -release=$(cat /etc/openwrt_release) - if [[ $release =~ "OpenWrt" ]]; then - echo "$(date) - Starting CatWrt Network Diagnostics" else echo "Abnormal system environment..." echo " "