mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-07-25 00:13:09 +00:00
~适配singbox1.14+版本内核
~修复debug模式提示找不到内核的bug
This commit is contained in:
@@ -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 &
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user