mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 19:55:57 +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
|
clash_v=v1.7.1
|
||||||
meta_v=v1.13.2
|
meta_v=v1.13.2
|
||||||
GeoIP_v=20230121
|
GeoIP_v=20230121
|
||||||
versionsh=1.7.0
|
versionsh=1.7.0b
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Copyright (C) Juewuy
|
# Copyright (C) Juewuy
|
||||||
|
|
||||||
version=1.7.0
|
version=1.7.0b
|
||||||
|
|
||||||
setdir(){
|
setdir(){
|
||||||
dir_avail(){
|
dir_avail(){
|
||||||
|
@ -149,7 +149,7 @@ mv -f /tmp/SC_tmp/* $clashdir 2>/dev/null
|
||||||
#判断系统类型写入不同的启动文件
|
#判断系统类型写入不同的启动文件
|
||||||
if [ -f /etc/rc.common ];then
|
if [ -f /etc/rc.common ];then
|
||||||
#设为init.d方式启动
|
#设为init.d方式启动
|
||||||
ln -sf $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
|
||||||
else
|
else
|
||||||
[ -w /etc/systemd/system ] && sysdir=/etc/systemd/system
|
[ -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 "alias clash=\"$clashdir/clash.sh\"" >>$profile
|
||||||
echo "export clashdir=\"$clashdir\"" >>$profile
|
echo "export clashdir=\"$clashdir\"" >>$profile
|
||||||
#设置init.d服务并启动clash服务
|
#设置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
|
chmod 755 /etc/init.d/clash
|
||||||
|
|
||||||
if [ ! -f $clashdir/.dis_startup ]; then
|
if [ ! -f $clashdir/.dis_startup ]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user