From 3e5f8e295065b77d55f65f980f582fb596e46658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=B5=E4=BA=8C?= <66155308+miaoermua@users.noreply.github.com> Date: Fri, 9 Aug 2024 20:04:35 +0800 Subject: [PATCH] Update cattools.sh --- cattools.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cattools.sh b/cattools.sh index 795a441..ef42e6b 100644 --- a/cattools.sh +++ b/cattools.sh @@ -10,19 +10,19 @@ AMD64_BIOS_SYSUP="https://raw.githubusercontent.com/miaoermua/cattools/main/sysu # Check ROOT & CatWrt/Lean's LEDE if [ $(id -u) != "0" ]; then - echo "Error: You must be root to run this script, please use root user" + echo "Error: You must be root to run this cattools, please use root user" exit 1 fi openwrt_release=$(cat /etc/openwrt_release) -if ! grep -q "OpenWrt" <<<"$openwrt_release"; then - echo "Error: Your system is not supported!" +if ! grep -qi "OpenWrt|QWRT" <<<"$openwrt_release"; then + echo "Error: Your system is not supported cattools!" exit 1 fi # Update update_cattools() { - echo "Please wait for the script to be updated." + echo "Please wait for the cattools to be updated." local target_file="/usr/bin/cattools" local retries=3 local success=false