Update cattools.sh
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
DEFAULT_IP="192.168.1.4"
|
DEFAULT_IP="192.168.1.4"
|
||||||
RELEASE="/etc/catwrt_release"
|
RELEASE="/etc/catwrt_release"
|
||||||
|
OPENWRT_RELEASE"/etc/openwrt_release"
|
||||||
AMD64_REPO="https://fastly.jsdelivr.net/gh/miaoermua/cattools@main/repo/amd64/distfeeds.conf"
|
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"
|
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"
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
release=$(cat /etc/openwrt_release)
|
|
||||||
|
|
||||||
if [[ $release =~ "OpenWrt" ]]; then
|
if [[ $release =~ "OpenWrt" ]]; then
|
||||||
echo "$(date) - Starting CatWrt Network Diagnostics"
|
|
||||||
else
|
else
|
||||||
echo "Abnormal system environment..."
|
echo "Abnormal system environment..."
|
||||||
echo " "
|
echo " "
|
||||||
|
|||||||
Reference in New Issue
Block a user