diff --git a/Linux_reinstall/Alpine/alpineInit.sh b/Linux_reinstall/Alpine/alpineInit.sh index 00c8e61..0ff7823 100644 --- a/Linux_reinstall/Alpine/alpineInit.sh +++ b/Linux_reinstall/Alpine/alpineInit.sh @@ -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