~修复部分情况下更新singbox及singboxp内核失败的问题
~修复升级后没有正确移除CrashCore的bug
This commit is contained in:
juewuy
2024-02-02 13:42:19 +08:00
parent 09ca34972d
commit b6b94ccc1c

View File

@@ -291,7 +291,7 @@ sed -i '/shellclash/d' /etc/passwd
sed -i '/shellclash/d' /etc/group sed -i '/shellclash/d' /etc/group
rm -rf /etc/init.d/clash rm -rf /etc/init.d/clash
[ "$systype" = "mi_snapshot" -a "$CRASHDIR" != '/data/clash' ] && rm -rf /data/clash [ "$systype" = "mi_snapshot" -a "$CRASHDIR" != '/data/clash' ] && rm -rf /data/clash
for file in clash.sh shellcrash.rc core.new clashservice log shellcrash.service mark? mark.bak;do for file in CrashCore clash.sh shellcrash.rc core.new clashservice log shellcrash.service mark? mark.bak;do
rm -rf ${CRASHDIR}/$file rm -rf ${CRASHDIR}/$file
done done
#旧版变量改名 #旧版变量改名