v1.4.2-test
~同步最新1.6.5官方核心文件 ~同步最新IP数据库文件 ~自启脚本的启动优先级调整为99(请重新开关一次开机启动功能) ~redir模式增加强行开启fakeip的开关 ~更新脚本时将强制关闭clash服务,以防止各种报错 ~增加对vyos使用show作为默认sh的判断
This commit is contained in:
@@ -72,6 +72,7 @@ tarurl=$url2/bin/clashfm.tar.gz
|
||||
gettar(){
|
||||
webget /tmp/clashfm.tar.gz $tarurl
|
||||
[ "$result" != "200" ] && echo "文件下载失败!" && exit 1
|
||||
$clashdir/start.sh stop 2>/dev/null
|
||||
#解压
|
||||
echo -----------------------------------------------
|
||||
echo 开始解压文件!
|
||||
@@ -100,7 +101,7 @@ gettar(){
|
||||
fi
|
||||
fi
|
||||
#修饰文件及版本号
|
||||
shtype=sh && [ -n "$(ls -l /bin/sh|grep -o dash)" ] && shtype=bash
|
||||
shtype=sh && [ -n "$(ls -l /bin/sh|grep -oE 'dash|show|bash')" ] && shtype=bash
|
||||
sed -i "s|/bin/sh|/bin/$shtype|" $clashdir/start.sh
|
||||
chmod 777 $clashdir/start.sh
|
||||
sed -i '/versionsh_l=*/'d $clashdir/mark
|
||||
|
||||
Reference in New Issue
Block a user