Skip to content

Commit

Permalink
v1.4.2-test
Browse files Browse the repository at this point in the history
~同步最新1.6.5官方核心文件
~同步最新IP数据库文件
~自启脚本的启动优先级调整为99(请重新开关一次开机启动功能)
~redir模式增加强行开启fakeip的开关
~更新脚本时将强制关闭clash服务,以防止各种报错
~增加对vyos使用show作为默认sh的判断
  • Loading branch information
juewuy committed Jul 10, 2021
1 parent 96d508c commit f539fe7
Show file tree
Hide file tree
Showing 25 changed files with 21 additions and 238 deletions.
Binary file modified bin/Country.mmdb
Binary file not shown.
Binary file modified bin/clash/clash-linux-386
Binary file not shown.
Binary file modified bin/clash/clash-linux-amd64
Binary file not shown.
Binary file modified bin/clash/clash-linux-armv5
Binary file not shown.
Binary file modified bin/clash/clash-linux-armv7
Binary file not shown.
Binary file modified bin/clash/clash-linux-armv8
Binary file not shown.
Binary file modified bin/clash/clash-linux-mips-softfloat
Binary file not shown.
Binary file modified bin/clash/clash-linux-mipsle-hardfloat
Binary file not shown.
Binary file modified bin/clash/clash-linux-mipsle-softfloat
Binary file not shown.
Binary file modified bin/clashfm.tar.gz
Binary file not shown.
Binary file modified bin/clashpre/clash-linux-386
Binary file not shown.
Binary file modified bin/clashpre/clash-linux-amd64
Binary file not shown.
Binary file modified bin/clashpre/clash-linux-armv5
Binary file not shown.
Binary file modified bin/clashpre/clash-linux-armv7
Binary file not shown.
Binary file modified bin/clashpre/clash-linux-armv8
Binary file not shown.
Binary file modified bin/clashpre/clash-linux-mips-softfloat
Binary file not shown.
Binary file modified bin/clashpre/clash-linux-mipsle-hardfloat
Binary file not shown.
Binary file modified bin/clashpre/clash-linux-mipsle-softfloat
Binary file not shown.
Binary file modified bin/cn_mini.mmdb
Binary file not shown.
8 changes: 4 additions & 4 deletions bin/version
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
clash_v=1.6.0
clashpre_v=2021.05.08
GeoIP_v=20210623
versionsh=1.4.1
GeoIP_v=20210709
clash_v=1.6.5
clashpre_v=2021.07.03
versionsh=1.4.2
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 开始解压文件!
Expand Down Expand Up @@ -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
Expand Down
225 changes: 0 additions & 225 deletions install_n.sh

This file was deleted.

17 changes: 11 additions & 6 deletions scripts/clash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ clashcfg(){
echo -e "\033[36mTun及混合模式必须使用clashpre核心!\033[0m"
echo -----------------------------------------------
echo -e " 1 Redir模式:CPU以及内存\033[33m占用较低\033[0m"
echo -e " 但\033[31m不支持UDP\033[0m,不支持fake-ip模式"
echo -e " 但\033[31m不支持UDP\033[0m"
echo -e " 适合\033[32m非外服游戏用户\033[0m使用"
echo -e " 2 混合模式: 使用redir转发TCP,Tun转发UDP流量"
echo -e " \033[33m速度较快\033[0m,\033[31m内存占用略高\033[0m"
Expand Down Expand Up @@ -619,7 +619,7 @@ clashcfg(){
echo -e "\033[33m切换模式后需要手动重启clash服务以生效!\033[0m"
echo -----------------------------------------------
echo -e " 1 fake-ip模式: \033[32m响应速度更快\033[0m"
echo -e " 不支持Redir模式,兼容性略差"
echo -e " 兼容性比较差,部分应用可能打不开"
echo -e " 2 redir_host模式:\033[32m兼容性更好\033[0m"
echo -e " 不支持Tun模式,抗污染能力略差"
echo " 0 返回上级菜单"
Expand All @@ -629,15 +629,20 @@ clashcfg(){
elif [ "$num" = 0 ]; then
i=
elif [ "$num" = 1 ]; then
if [ "$redir_mod" = "Redir模式" ];then
echo -----------------------------------------------
echo -e "\033[36mfake-ip与Redir模式兼容性较差,请使用其他模式!!\033[0m"
else
set_fake_ip(){
dns_mod=fake-ip
setconfig dns_mod $dns_mod
echo -----------------------------------------------
echo -e "\033[36m已设为 $dns_mod 模式!!\033[0m"
}
if [ "$redir_mod" = "Redir模式" ];then
echo -----------------------------------------------
read -p "fake-ip与Redir模式兼容性较差,是否依然强制使用?(1/0) > " res
[ "$res" = 1 ] && set_fake_ip
else
set_fake_ip
fi

elif [ "$num" = 2 ]; then
dns_mod=redir_host
setconfig dns_mod $dns_mod
Expand Down
2 changes: 1 addition & 1 deletion scripts/clashservice
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh /etc/rc.common

START=101
START=99

SERVICE_DAEMONIZE=1
SERVICE_WRITE_PID=1
Expand Down
4 changes: 3 additions & 1 deletion scripts/getdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 开始解压文件!
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f539fe7

Please # to comment.