~修复部分路由设备会出现双进程的bug
This commit is contained in:
juewuy 2023-01-25 16:27:11 +08:00
parent 6794271c5e
commit 3f2485dbe4
5 changed files with 4 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@ -3,4 +3,4 @@ clashpre_v=2022.11.25
clash_v=v1.7.1
meta_v=v1.13.2
GeoIP_v=20230121
versionsh=1.7.0
versionsh=1.7.0b

View File

@ -1,7 +1,7 @@
#!/bin/sh
# Copyright (C) Juewuy
version=1.7.0
version=1.7.0b
setdir(){
dir_avail(){
@ -149,7 +149,7 @@ mv -f /tmp/SC_tmp/* $clashdir 2>/dev/null
#判断系统类型写入不同的启动文件
if [ -f /etc/rc.common ];then
#设为init.d方式启动
ln -sf $clashdir/clashservice /etc/init.d/clash
cp -f $clashdir/clashservice /etc/init.d/clash
chmod 755 /etc/init.d/clash
else
[ -w /etc/systemd/system ] && sysdir=/etc/systemd/system

View File

@ -12,7 +12,7 @@ if [ -z $(pidof clash) ]; then
echo "alias clash=\"$clashdir/clash.sh\"" >>$profile
echo "export clashdir=\"$clashdir\"" >>$profile
#设置init.d服务并启动clash服务
ln -sf $clashdir/clashservice /etc/init.d/clash
cp -f $clashdir/clashservice /etc/init.d/clash
chmod 755 /etc/init.d/clash
if [ ! -f $clashdir/.dis_startup ]; then