From 83a902df03dcc5ff5a0708332dbcec4298c9df44 Mon Sep 17 00:00:00 2001 From: juewuy Date: Tue, 4 Jan 2022 20:12:14 +0800 Subject: [PATCH] =?UTF-8?q?v1.4.9=20~=E5=A2=9E=E5=8A=A0=E5=AF=B9=E6=9B=B4?= =?UTF-8?q?=E5=A4=9A=E5=8D=8E=E7=A1=95/=E6=A2=85=E6=9E=97=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E7=9A=84=E6=94=AF=E6=8C=81=20~=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=83=A8=E5=88=86=E8=AE=BE=E5=A4=87=E4=BF=AE=E6=94=B9=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=E6=97=B6=E6=8A=A5=E9=94=99=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 2 +- scripts/clash.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 8849776..41018e8 100644 --- a/install.sh +++ b/install.sh @@ -11,7 +11,7 @@ echo "** by Juewuy **" echo "***********************************************" [ -f "/etc/storage/started_script.sh" ] && systype=Padavan && initdir='/etc/storage/started_script.sh' -[ -d "/jffs/" ] && systype=asusrouter && initdir='/jffs/init-start' +[ -d "/jffs/scripts" ] && systype=asusrouter && initdir='/jffs/scripts/net-start' [ -f "/jffs/.asusrouter" ] && systype=asusrouter && initdir='/jffs/.asusrouter' #检查root权限 if [ "$USER" != "root" -a -z "$systype" ];then diff --git a/scripts/clash.sh b/scripts/clash.sh index b6aa746..a614bb7 100644 --- a/scripts/clash.sh +++ b/scripts/clash.sh @@ -136,6 +136,7 @@ checkrestart(){ } #功能相关 setport(){ + getconfig [ -z "$secret" ] && secret=未设置 [ -z "$authentication" ] && authentication=未设置 inputport(){ @@ -153,7 +154,6 @@ setport(){ inputport else setconfig $xport $portx - $xport=$portx echo -e "\033[32m设置成功!!!\033[0m" setport fi