v1.7.1
~更新Meta内核至v1.14.2 ~新手引导内容优化 ~代理常用端口功能说明优化 ~内置加密DNS设置相关bug修复 ~屏蔽Meta内核进程嗅探
This commit is contained in:
@@ -152,8 +152,8 @@ if [ -f /etc/rc.common ];then
|
||||
cp -f $clashdir/clashservice /etc/init.d/clash
|
||||
chmod 755 /etc/init.d/clash
|
||||
else
|
||||
[ -w /etc/systemd/system ] && sysdir=/etc/systemd/system
|
||||
[ -w /usr/lib/systemd/system ] && sysdir=/usr/lib/systemd/system
|
||||
[ "$(pidof systemd)" = 1 ] && [ -w /etc/systemd/system ] && sysdir=/etc/systemd/system
|
||||
[ "$(pidof systemd)" = 1 ] && [ -w /usr/lib/systemd/system ] && sysdir=/usr/lib/systemd/system
|
||||
if [ -n "$sysdir" ];then
|
||||
#设为systemd方式启动
|
||||
mv -f $clashdir/clash.service $sysdir/clash.service 2>/dev/null
|
||||
|
||||
Reference in New Issue
Block a user