altboot: Fix /etc/altboot.rc scanning and adjust the "Master Password" notice to...
authorMatthias Hentges <oe@hentges.net>
Wed, 10 Aug 2005 16:30:28 +0000 (16:30 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Wed, 10 Aug 2005 16:30:28 +0000 (16:30 +0000)
packages/altboot/altboot.bb
packages/altboot/files/altboot.func
packages/altboot/files/init.altboot

index 80e22d1..882336e 100644 (file)
@@ -6,7 +6,7 @@ MAINTAINER = "Matthias 'CoreDump' Hentges  <oe@hentges.net>"
 LICENSE = "GPL"
  
 
-PR = "r5"
+PR = "r6"
 
 
 SRC_URI = "file://altboot-menu \
index 251368a..3a6c743 100644 (file)
@@ -182,9 +182,9 @@ set_password() {
        mount -o remount,rw /
        if test -z "$MASTER_PASSWORD"
        then
-               echo -e "\nAltboot is a boot-manager which allows to boot from SD, CF and NFS"
+               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! It is used by altboot alone!${C_RESET}"
+               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"
 
index 26b4639..5c28edb 100644 (file)
@@ -252,11 +252,11 @@ else
 
        # Execute scripts in /etc/altboot.rc before doing anything else.
        # Required for special situations, like booting spitz
-       RC_FILES=`ls /etc/altboot.rc | grep \\\\.sh$`
+       RC_FILES=`ls /etc/altboot.rc | grep \.sh$`
 
        for file in $RC_FILES
        do
-                . $file >/dev/tty1 2>&1 || echo "/etc/altboot.rc/$file failed!"
+                . /etc/altboot.rc/$file >/dev/tty1 2>&1 || echo "/etc/altboot.rc/$file failed!"
        done
        
        if test "$ENABLE_ALTBOOT" != "yes"