~脚本拆分后bug修复

This commit is contained in:
juewuy
2025-12-25 21:49:05 +08:00
parent a1835b7113
commit d1c9bccfbe
9 changed files with 247 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/ash
#!/bin/sh
# Copyright (C) Juewuy
#初始化目录
@@ -51,7 +51,10 @@ if [ -n "$test" -o -n "$(pidof CrashCore)" ]; then
sed -i "${line}a\\. $CRASHDIR/task/affirewall" /etc/init.d/firewall
} &
#启动TG机器人
[ "$bot_tg_service" = ON ] && "$CRASHDIR"/menus/bot_tg.sh &
[ "$bot_tg_service" = ON ] && {
setsid sh "$CRASHDIR/menus/bot_tg.sh" &
echo $! > "$TMPDIR/bot_tg.pid"
}
else
. "$CRASHDIR"/starts/start_error.sh
"$CRASHDIR"/start.sh stop