mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 11:42:18 +08:00
v1.7.0b
~修复部分路由设备会出现双进程的bug
This commit is contained in:
parent
6794271c5e
commit
3f2485dbe4
Binary file not shown.
Binary file not shown.
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user