mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
core: tty0 优先
This commit is contained in:
parent
ca348ce45b
commit
87af5d63b5
2
ttys.sh
2
ttys.sh
@ -7,7 +7,7 @@ is_in_windows() {
|
||||
|
||||
# 最后一个 tty 是主 tty,显示的信息最全
|
||||
is_first=true
|
||||
for tty in tty0 ttyS0 ttyAMA0; do
|
||||
for tty in ttyS0 ttyAMA0 tty0; do
|
||||
# hytron 有ttyS0 但无法写入
|
||||
# cygwin 没有 tty0,所以 windows 下 tty0 免检
|
||||
if { [ "$tty" = tty0 ] && is_in_windows; } || stty -g -F "/dev/$tty" >/dev/null 2>&1; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user