core: 完善 tty 检测

This commit is contained in:
bin456789
2023-10-08 21:58:16 +08:00
parent 67a2bee31c
commit 2a7c24bee4
2 changed files with 12 additions and 21 deletions

View File

@@ -1008,13 +1008,7 @@ build_extra_cmdline() {
}
echo_tmp_ttys() {
# 由于 windows 下无法测试各tty是否有效
# 这里的 tty 只临时使用,非最终系统的 tty
if is_in_windows; then
echo "console=ttyS0,115200n8 console=tty0"
else
curl -L $confhome/ttys.sh | sh -s "console="
fi
curl -L $confhome/ttys.sh | sh -s "console="
}
# shellcheck disable=SC2154