Update BypassGateway

This commit is contained in:
喵二
2023-12-27 14:52:00 +08:00
committed by GitHub
parent aaa575204e
commit 60b8b6a6c5

View File

@@ -138,9 +138,11 @@ catwrt_sysupgrade(){
} }
debug(){ debug(){
if [ -f /www/logs.txt ]; then if [ -f /www/logs.txt ]; then
rm /www/logs.txt rm /www/logs.txt
fi fi
cat /etc/catwrt_release > /www/logs.txt cat /etc/catwrt_release > /www/logs.txt
logread >> /www/logs.txt logread >> /www/logs.txt
dmesg >> /www/logs.txt dmesg >> /www/logs.txt
@@ -151,20 +153,27 @@ debug(){
echo "访问下载 http://$lan_ip/logs.txt" echo "访问下载 http://$lan_ip/logs.txt"
} }
bypass_gateway(){
echo "没做完"
exit
}
update update
while :; do while :; do
clear clear
echo " CatTools" echo " CatTools"
echo "--------------------------------------" echo "----------------------------------------"
echo "1. Set IPv4 Addr 设置 IP" echo "1. Set IPv4 Addr 设置 IP"
echo "2. check update 检查系统更新" echo "2. check update 检查系统更新"
echo "3. network diagnostics 网络诊断" echo "3. network diagnostics 网络诊断"
echo "4. use repo 使用软件源" echo "4. use repo 使用软件源"
echo "5. sysupgrade 升级系统" echo "5. sysupgrade 升级系统"
echo "6. debug 日志收集" echo "6. debug 日志收集"
echo "7. setup bypass gateway 旁路网关"
echo "0. Exit 退出脚本" echo "0. Exit 退出脚本"
echo "--------------------------------------" echo "----------------------------------------"
echo "请选择数字按下回车: " echo "请选择数字按下回车: "
choice="" choice=""
while [ -z $choice ]; do while [ -z $choice ]; do
@@ -190,6 +199,9 @@ while :; do
6) 6)
debug debug
;; ;;
7)
bypass_gateway
;;
0) 0)
echo "Exit CatTools 退出脚本..." echo "Exit CatTools 退出脚本..."
break break