altboot: Do not echo the password when entering init=/bin/sh
authorMatthias Hentges <oe@hentges.net>
Wed, 12 Apr 2006 14:35:29 +0000 (14:35 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Wed, 12 Apr 2006 14:35:29 +0000 (14:35 +0000)
packages/altboot/files/altboot.func

index f87cef4..31704e4 100644 (file)
@@ -372,14 +372,16 @@ verify_master_pw() {
        then
                auth_timeout="3"
 
-               echo "Please enter your altboot master password"
+               echo -e "\nPlease enter your altboot master password"
 
                cnt=0
                while true
                do
                        let cnt=$cnt+$auth_timeout
                        echo -n "Password: "
+                       stty -echo
                        read junk < /dev/tty0
+                       stty echo
 
                        if test "`echo "$junk" | md5sum | awk '{print $1}'`" = "$MASTER_PASSWORD"
                        then
@@ -396,6 +398,8 @@ verify_master_pw() {
 #                              fi
                        fi
                done
+               
+               echo ""
        fi
 }