move to misnap_init.sh
This commit is contained in:
@@ -55,6 +55,15 @@ init(){
|
|||||||
cp -f $clashdir/clashservice /etc/init.d/clash
|
cp -f $clashdir/clashservice /etc/init.d/clash
|
||||||
chmod 755 /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
|
if [ ! -f $clashdir/.dis_startup ]; then
|
||||||
#AX6S/AX6000修复tun功能
|
#AX6S/AX6000修复tun功能
|
||||||
[ -f $clashdir/configs/tun.ko ] && tunfix
|
[ -f $clashdir/configs/tun.ko ] && tunfix
|
||||||
|
|||||||
@@ -1107,15 +1107,6 @@ EOF
|
|||||||
[ "$?" = 0 ] && rm -rf $TMPDIR/clash_pac || mv -f $TMPDIR/clash_pac $bindir/ui/pac
|
[ "$?" = 0 ] && rm -rf $TMPDIR/clash_pac || mv -f $TMPDIR/clash_pac $bindir/ui/pac
|
||||||
}
|
}
|
||||||
bfstart(){
|
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
|
getconfig
|
||||||
[ ! -d $bindir/ui ] && mkdir -p $bindir/ui
|
[ ! -d $bindir/ui ] && mkdir -p $bindir/ui
|
||||||
|
|||||||
Reference in New Issue
Block a user