~优化安装脚本及安装流程
~合并https://github.com/juewuy/ShellClash/pull/309
This commit is contained in:
juewuy
2023-01-23 16:14:53 +08:00
parent bcf7b347b2
commit 7772e82631
3 changed files with 20 additions and 20 deletions

View File

@@ -345,7 +345,7 @@ gettar(){
echo -e "\033[33m文件解压失败\033[0m"
error_down
else
setconfig versionsh_l $release_new
source $clashdir/init.sh >/dev/null
echo -e "\033[32m脚本更新成功\033[0m"
fi
fi

View File

@@ -145,7 +145,7 @@ mv -f /tmp/SC_tmp/* $clashdir 2>/dev/null
#初始化
[ -f "$clashdir/mark" ] || echo '#ShellClash配置文件不明勿动' > $clashdir/mark
#本地安装跳过新手引导
setconfig userguide 1
[ -z "$url" ] && setconfig userguide 1
#判断系统类型写入不同的启动文件
if [ -f /etc/rc.common ];then
#设为init.d方式启动