From cf8938f3a59d5b4ee6fd26c353a8de4713e37fcc 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 15:04:26 +0800 Subject: [PATCH] Update Debug --- cattools.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cattools.sh b/cattools.sh index 83b1c4d..8f04833 100644 --- a/cattools.sh +++ b/cattools.sh @@ -142,15 +142,17 @@ debug(){ if [ -f /www/logs.txt ]; then rm /www/logs.txt fi - + + cat /etc/banner > /www/logs.txt cat /etc/catwrt_release > /www/logs.txt - logread >> /www/logs.txt + logread >> /www/logs.txt dmesg >> /www/logs.txt lan_ip=$(uci get network.lan.ipaddr) echo "系统日志已收集到 /www/logs.txt" echo "访问下载 http://$lan_ip/logs.txt" + exit } bypass_gateway(){