~适配singbox1.14+版本内核

~修复debug模式提示找不到内核的bug
This commit is contained in:
juewuy
2026-07-14 10:47:13 +08:00
parent bc26306ebd
commit 947d93d3ea
2 changed files with 25 additions and 22 deletions

View File

@@ -684,6 +684,7 @@ testcommand() {
}
debug() {
rm -f "$CRASHDIR"/\.start_error #移除自启失败标记
echo "$crashcore" | grep -q 'singbox' && config_tmp="$TMPDIR"/jsons || config_tmp="$TMPDIR"/config.yaml
comp_box "\033[36m$TOOLS_DEBUG_WARN1\033[0m" \
"${TOOLS_DEBUG_WARN2_PREFIX}\033[32m$TMPDIR/debug.log\033[0m${TOOLS_DEBUG_WARN2_SUFFIX}" \
@@ -705,7 +706,7 @@ debug() {
0) ;;
1)
"$CRASHDIR"/start.sh stop
"$CRASHDIR"/start.sh bfstart
"$CRASHDIR"/starts/bfstart.sh
if echo "$crashcore" | grep -q 'singbox'; then
"$TMPDIR"/CrashCore run -D "$BINDIR" -C "$TMPDIR"/jsons &
{