move to misnap_init.sh

This commit is contained in:
Testeera
2023-08-01 21:57:27 +08:00
parent b2e3f661e7
commit 40a2c36fc4
2 changed files with 9 additions and 9 deletions

View File

@@ -55,6 +55,15 @@ init(){
cp -f $clashdir/clashservice /etc/init.d/clash
chmod 755 /etc/init.d/clash
#启动服务
#小米7000/小米万兆tproxy
if [ -f /etc/init.d/qca-nss-ecm ];then
if [ cat /proc/sys/net/bridge/bridge-nf-call-iptables ];then
sysctl -w net.bridge.bridge-nf-call-iptables=0
fi
if [ cat /proc/sys/net/bridge/bridge-nf-call-ip6tables ];then
sysctl -w net.bridge.bridge-nf-call-ip6tables=0
fi
fi
if [ ! -f $clashdir/.dis_startup ]; then
#AX6S/AX6000修复tun功能
[ -f $clashdir/configs/tun.ko ] && tunfix

View File

@@ -1107,15 +1107,6 @@ EOF
[ "$?" = 0 ] && rm -rf $TMPDIR/clash_pac || mv -f $TMPDIR/clash_pac $bindir/ui/pac
}
bfstart(){
#小米7000/小米万兆tproxy
if [ -f /etc/init.d/qca-nss-ecm ];then
if [ cat /proc/sys/net/bridge/bridge-nf-call-iptables ];then
sysctl -w net.bridge.bridge-nf-call-iptables=0
fi
if [ cat /proc/sys/net/bridge/bridge-nf-call-ip6tables ];then
sysctl -w net.bridge.bridge-nf-call-ip6tables=0
fi
fi
#读取配置文件
getconfig
[ ! -d $bindir/ui ] && mkdir -p $bindir/ui