turn off input echoing while waiting for return character

see LP: #1639917
This commit is contained in:
Michael Hudson-Doyle 2016-11-09 14:16:59 +13:00
parent 0921821c29
commit c3a5a78784
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ trap true HUP INT QUIT TSTP
# agetty only sets ICRNL if it has read the username and seen whether
# it was terminated by CR or NL. We pass -n to agetty so that hasn't
# happened and need to force it on. Yay UNIX!
stty icrnl
stty icrnl -echo
if [ "$(snap managed)" = "true" ]; then
touch /var/lib/console-conf/complete
@ -15,4 +15,5 @@ fi
cat /usr/share/subiquity/console-conf-wait
read REPLY
stty echo
exec console-conf "$@"