v1.7.3
~工具菜单新增AX6S等设备的tun模块修复功能 ~小闪存模式增加自定义目录功能 ~优化重写本机代理菜单 ~将172.16/12网段默认加入透明路由 ~将10.0/8默认路由网段改为10.0/12 ~优化一键设置加密DNS功能,修改根证书安装更新时的描述 ~修复部分网络环境下在线生成配置文件反复失败的问题 ~修复部分场景下tar解压失败的问题 ~修复部分情况下修改默认端口失败的问题 ~修复因Tun模块修复功能导致的WiFi信号减弱的问题 ~修复"cannot find device utun"报错问题 ~修复ntp服务在前台同步时导致clash无法正常启动的问题
This commit is contained in:
@@ -6,18 +6,12 @@ profile=/etc/profile
|
||||
|
||||
tunfix(){
|
||||
#在/tmp创建并挂载overlay
|
||||
[ -e /tmp/overlay ] || mkdir /tmp/overlay
|
||||
[ -e /tmp/overlay/upper ] || mkdir /tmp/overlay/upper
|
||||
[ -e /tmp/overlay/work ] || mkdir /tmp/overlay/work
|
||||
mount --bind /tmp/overlay /overlay
|
||||
. /lib/functions/preinit.sh
|
||||
fopivot /overlay/upper /overlay/work /rom 1
|
||||
#Fixup miwifi misc, and DO NOT use /overlay/upper/etc instead, /etc/uci-defaults/* may be already removed
|
||||
mount -o noatime,move /rom/data /data 2>&-
|
||||
mount -o noatime,move /rom/etc /etc 2>&-
|
||||
mount -o noatime,move /rom/userdisk /userdisk 2>&-
|
||||
mkdir -p /tmp/overlay
|
||||
mkdir -p /tmp/overlay/upper
|
||||
mkdir -p /tmp/overlay/work
|
||||
mount -o noatime,lowerdir=/lib/modules/4.4.198,upperdir=/tmp/overlay/upper,workdir=/tmp/overlay/work -t overlay "overlay_mods_only" /lib/modules/4.4.198
|
||||
#将tun.ko链接到lib
|
||||
ln -s $clashdir/tun.ko /overlay/upper/lib/modules/4.4.198/tun.ko
|
||||
ln -s $clashdir/tun.ko /lib/modules/4.4.198/tun.ko
|
||||
}
|
||||
init(){
|
||||
#初始化环境变量
|
||||
@@ -36,7 +30,7 @@ init(){
|
||||
[ -n "$(grep 'init complete' $log_file)" ] && i=10 || i=$((i + 1))
|
||||
done
|
||||
#AX6S/AX6000修复tun功能
|
||||
[ -f $clashdir/tun.ko -a ! -f /lib/modules/4.4.198/tun.ko ] && tunfix
|
||||
[ -f $clashdir/tun.ko -a ! -f /lib/modules/4.4.198/tun.ko ] && tunfix && sleep 10
|
||||
#
|
||||
/etc/init.d/clash start
|
||||
/etc/init.d/clash enable
|
||||
|
||||
Reference in New Issue
Block a user