diff --git a/Linux_reinstall/Alpine/alpineInit.sh b/Linux_reinstall/Alpine/alpineInit.sh index f751415..ea35bb9 100644 --- a/Linux_reinstall/Alpine/alpineInit.sh +++ b/Linux_reinstall/Alpine/alpineInit.sh @@ -29,7 +29,7 @@ apk add bash coreutils grep sed # 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") - if [[ -n "$ttyAttribute" ]] && [[ ! $(echo "$ttyAttribute" | grep 'min = 1') ]]; then + if [[ -n "$ttyAttribute" ]]; then exec >"$ttyItems" 2>&1 break fi