Update alpineInit.sh

This commit is contained in:
Molly Lau 2023-10-24 20:42:25 +09:00 committed by GitHub
parent 69be228932
commit 948ed12f11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ixoff \-imaxbel") ]] && {
[[ -n "$ttyAttribute" && -n $(echo "$ttyAttribute" | grep -io '\-brkint' | grep -io 'ixoff' | grep -io '\-imaxbel') ]] && {
break
}
done