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