summaryrefslogtreecommitdiff
path: root/packages/altboot/files/altboot.func
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-01-18 19:15:07 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-18 19:15:07 +0000
commit65b7c2346f0f1421ea1297a3a0aa994ecac192ec (patch)
treebe2bccc0093e4ce9ac6b77d02730cd2264fa79c0 /packages/altboot/files/altboot.func
parent8d60e06669abb89149ba60248ee6b72b6a274f04 (diff)
altboot:
- Fixed a bug where altboot wouldn't prompt for the menu but do init 5 instead - Cosmetic changes (Thanks to andrewy@#openzaurus) - Fixed a bug where pressing enter to start altboot would launch the default option. (Thanks to prh@#openzaurus) - Disabled "Copy RootFS" menu item as this part is not finished, yet.
Diffstat (limited to 'packages/altboot/files/altboot.func')
-rw-r--r--packages/altboot/files/altboot.func18
1 files changed, 13 insertions, 5 deletions
diff --git a/packages/altboot/files/altboot.func b/packages/altboot/files/altboot.func
index 0598c8ce93..7afb3727f9 100644
--- a/packages/altboot/files/altboot.func
+++ b/packages/altboot/files/altboot.func
@@ -185,18 +185,26 @@ set_password() {
then
echo -e "\nAltboot is a boot-manager which allows to boot from SD,\nCF and NFS"
echo -e "\nFor security reasons altboot requires a password\nto boot into init=/bin/sh."
- echo -e "${C_RED}This is *not* your root password!\nIt is used by altboot alone!${C_RESET}"
- echo -e "${C_BLUE}\nNote:\tThe password will be echoed to the screen\n\tand it will be asked twice for confirmation.${C_RESET}"
- echo -e "\nPlease enter a new master password:\n"
+ echo -e "${C_RED}This is *not* your root password!\nIt is used by altboot alone!${C_RESET}\n"
+ #echo -e "${C_BLUE}\nNote:\tThe password will be echoed to the screen\n\tand it will be asked twice for confirmation.${C_RESET}"
+ #echo -e "\nPlease enter a new master password:\n"
while true
do
- echo -en "New password: "
+ echo -en "\nNew password: "
+
+ stty -echo
read junk1 < /dev/tty0
+ stty echo
+
if ! test -z "$junk1"
then
- echo -n "Repeat: "
+ echo -en "\nRepeat: "
+
+ stty -echo
read junk2 < /dev/tty0
+ stty echo
+ echo ""
if test "$junk1" = "$junk2"
then