From b7dadf53b215e3d8441d75f9385deee167b08383 Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Tue, 24 Oct 2023 21:04:36 +0900 Subject: [PATCH] Update alpineInit.sh --- Linux_reinstall/Alpine/alpineInit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Linux_reinstall/Alpine/alpineInit.sh b/Linux_reinstall/Alpine/alpineInit.sh index 0ff7823..3bed0c3 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' | grep -io 'ixoff' | grep -io '\-imaxbel') ]] && { + [[ -n "$ttyAttribute" && -n $(echo "$ttyAttribute" | grep -o 'ixoff') ]] && { break } done