From 7d853f5316f80c02a4655733d15e92fd88a760da Mon Sep 17 00:00:00 2001 From: juewuy Date: Tue, 8 Mar 2022 21:16:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index e0ab0a8..5930bb7 100644 --- a/install.sh +++ b/install.sh @@ -131,10 +131,12 @@ gettar(){ #华硕/Padavan额外设置 [ -n "$initdir" ] && sed -i '/ShellClash初始化/'d $initdir && touch $initdir && echo "$clashdir/start.sh init #ShellClash初始化脚本" >> $initdir #小米镜像化OpenWrt额外设置 - [ "$systype" = "mi_snapshot" ] && echo "*/1 * * * * test -z \"\$(pidof clash)\" && $clashdir/start.sh init #ShellClash初始化及守护进程" >> /data/etc/crontabs/root - sed -i '/start_old=*/'d $clashdir/mark - echo start_old=已开启 >> $clashdir/mark - rm -rf /etc/init.d/clash + if [ "$systype" = "mi_snapshot" ];then + echo "*/1 * * * * test -z \"\$(pidof clash)\" && $clashdir/start.sh init #ShellClash初始化及守护进程" >> /data/etc/crontabs/root + sed -i '/start_old=*/'d $clashdir/mark + echo start_old=已开启 >> $clashdir/mark + rm -rf /etc/init.d/clash + fi #删除临时文件 rm -rf /tmp/clashfm.tar.gz rm -rf $clashdir/clashservice