mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 05:34:34 +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
|
# 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
|
for ttyItems in "/dev/tty0" "/dev/ttyS0" "/dev/ttyAMA0"; do
|
||||||
ttyAttribute=$(stty -F "$ttyItems")
|
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
|
break
|
||||||
}
|
}
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue