mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-14 21:24:32 +08:00
Update alpineInit.sh
This commit is contained in:
parent
c8480b30b6
commit
b7dadf53b2
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
# Parameters of outputs of "stty": https://www.ibm.com/docs/en/aix/7.3?topic=s-stty-command
|
||||
for ttyItems in "/dev/tty0" "/dev/ttyS0" "/dev/ttyAMA0"; do
|
||||
ttyAttribute=$(stty -F "$ttyItems")
|
||||
[[ -n "$ttyAttribute" && -n $(echo "$ttyAttribute" | grep -io '\-brkint' | grep -io 'ixoff' | grep -io '\-imaxbel') ]] && {
|
||||
[[ -n "$ttyAttribute" && -n $(echo "$ttyAttribute" | grep -o 'ixoff') ]] && {
|
||||
break
|
||||
}
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue