~修复华硕padavan小米等设备因意外循环重启的bug

This commit is contained in:
juewuy
2026-02-02 20:00:55 +08:00
parent 0ca7bb8eb2
commit 0b1d297622
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ fi
#写入环境变量
set_profile "$profile"
#启动进程或删除守护进程
if [ -f "$CRASHDIR"/.dis_startup ];then
if [ -f "$CRASHDIR"/.dis_startup ] || [ -f "$CRASHDIR"/.start_error ];then
cronset "保守模式守护进程"
else
"$CRASHDIR"/start.sh start

View File

@@ -71,7 +71,7 @@ auto_start(){
set_profile '/etc/profile'
}
#启动服务
if [ ! -f "$CRASHDIR"/.dis_startup ]; then
if [ ! -f "$CRASHDIR"/.dis_startup ] && [ ! -f "$CRASHDIR"/.start_error ]; then
#AX6S/AX6000修复tun功能
[ -s "$CRASHDIR"/tools/tun.ko ] && tunfix
#小米7000/小米万兆修复tproxy