mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-10 23:41:22 +00:00
~修复华硕padavan小米等设备因意外循环重启的bug
This commit is contained in:
@@ -23,7 +23,7 @@ fi
|
|||||||
#写入环境变量
|
#写入环境变量
|
||||||
set_profile "$profile"
|
set_profile "$profile"
|
||||||
#启动进程或删除守护进程
|
#启动进程或删除守护进程
|
||||||
if [ -f "$CRASHDIR"/.dis_startup ];then
|
if [ -f "$CRASHDIR"/.dis_startup ] || [ -f "$CRASHDIR"/.start_error ];then
|
||||||
cronset "保守模式守护进程"
|
cronset "保守模式守护进程"
|
||||||
else
|
else
|
||||||
"$CRASHDIR"/start.sh start
|
"$CRASHDIR"/start.sh start
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ auto_start(){
|
|||||||
set_profile '/etc/profile'
|
set_profile '/etc/profile'
|
||||||
}
|
}
|
||||||
#启动服务
|
#启动服务
|
||||||
if [ ! -f "$CRASHDIR"/.dis_startup ]; then
|
if [ ! -f "$CRASHDIR"/.dis_startup ] && [ ! -f "$CRASHDIR"/.start_error ]; then
|
||||||
#AX6S/AX6000修复tun功能
|
#AX6S/AX6000修复tun功能
|
||||||
[ -s "$CRASHDIR"/tools/tun.ko ] && tunfix
|
[ -s "$CRASHDIR"/tools/tun.ko ] && tunfix
|
||||||
#小米7000/小米万兆修复tproxy
|
#小米7000/小米万兆修复tproxy
|
||||||
|
|||||||
Reference in New Issue
Block a user