v1.4.2-test

~同步最新1.6.5官方核心文件
~同步最新IP数据库文件
~自启脚本的启动优先级调整为99(请重新开关一次开机启动功能)
~redir模式增加强行开启fakeip的开关
~更新脚本时将强制关闭clash服务,以防止各种报错
~增加对vyos使用show作为默认sh的判断
This commit is contained in:
juewuy
2021-07-11 01:03:43 +08:00
parent 96d508cd63
commit f539fe74da
25 changed files with 21 additions and 238 deletions

View File

@@ -308,6 +308,7 @@ clashlink(){
gettar(){
$clashdir/start.sh webget /tmp/clashfm.tar.gz $tarurl
[ "$?" = "1" ] && echo "文件下载失败!" && exit 1
$clashdir/start.sh stop
#解压
echo -----------------------------------------------
echo 开始解压文件!
@@ -336,7 +337,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
@@ -366,6 +367,7 @@ getsh(){
echo -----------------------------------------------
echo -e "当前脚本版本为:\033[33m $versionsh_l \033[0m"
echo -e "最新脚本版本为:\033[32m $release_new \033[0m"
echo -e "注意更新时会停止clash服务"
echo -----------------------------------------------
read -p "是否更新脚本?[1/0] > " res
if [ "$res" = '1' ]; then