getty config help: fix example script

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2011-02-10 10:38:13 +01:00
parent b44e9760e1
commit 95897f9fd2

View File

@ -189,8 +189,8 @@ config GETTY
this script approximates getty: this script approximates getty:
exec </dev/$1 >/dev/$1 2>&1 || exit 1 exec </dev/$1 >/dev/$1 2>&1 || exit 1
stty sane; stty ispeed 38400; stty ospeed 38400
reset reset
stty sane; stty ispeed 38400; stty ospeed 38400
printf "%s login: " "`hostname`" printf "%s login: " "`hostname`"
read -r login read -r login
exec /bin/login "$login" exec /bin/login "$login"