mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-10 09:13:52 +08:00
Update alpineInit.sh
This commit is contained in:
parent
ff4ad68165
commit
4845867fd4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue