~更新Meta内核至v1.14.2
~新手引导内容优化
~代理常用端口功能说明优化
~内置加密DNS设置相关bug修复
~屏蔽Meta内核进程嗅探
This commit is contained in:
juewuy
2023-02-28 19:45:06 +08:00
parent 21c92117e0
commit dfa4ba557e
7 changed files with 37 additions and 27 deletions

View File

@@ -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