altboot: Unb0rk Poodles 2.6 conf from last commit and store the master password in...
authorMatthias Hentges <oe@hentges.net>
Wed, 22 Nov 2006 23:29:59 +0000 (23:29 +0000)
committerMatthias Hentges <oe@hentges.net>
Wed, 22 Nov 2006 23:29:59 +0000 (23:29 +0000)
packages/altboot/altboot_0.0.0.bb
packages/altboot/files/altboot.func
packages/altboot/files/poodle/altboot-2.6.cfg

index 8cc722e..be73b0c 100644 (file)
@@ -20,7 +20,7 @@ RDEPENDS_${PN} = "${PN}-conf"
 
 ######################################################################################
 
-PR = "r50"
+PR = "r51"
 
 ######################################################################################
 
index a4ac6ed..7580809 100644 (file)
@@ -330,6 +330,9 @@ image_conf(){
 
 # This functions configures the master password for altboot if none is set
 set_password() {
+
+       test -e /etc/altboot.pwd && . /etc/altboot.pwd  
+
        mount -o remount,rw /
        if test -z "$MASTER_PASSWORD" -a "$ENABLE_DEBUG" != yes
        then
@@ -358,14 +361,15 @@ set_password() {
                                then
                                        crypt_pw="`echo "$junk1" | md5sum | awk '{print $1}'`"
                                        
-                                       if test -e "${ALTBOOT_CFG_FILE}"
+                                       if test -e "/etc/altboot.pwd"
                                        then
                                                sed "/^MASTER_PASSWORD/s/\(.*\=\).*/\1\"$crypt_pw\"/" "${ALTBOOT_CFG_FILE}" > ${ALTBOOT_CFG_FILE}_
                                                mv ${ALTBOOT_CFG_FILE}_ ${ALTBOOT_CFG_FILE}
                                                MASTER_PASSWORD="$crypt_pw"
                                                echo "Password changed."
                                        else
-                                               echo "${ALTBOOT_CFG_FILE} is missing, no password saved"
+                                               echo "MASTER_PASSWORD=\"$crypt_pw\"" > /etc/altboot.pwd
+                                               echo "Password installed"
                                        fi
                                        
                                        break
@@ -380,6 +384,9 @@ set_password() {
 
 # This function asks for altboots master password. It only returns if the correct password was supplied
 verify_master_pw() {
+       
+       test -e /etc/altboot.pwd && . /etc/altboot.pwd
+       
        if ! test -z "$MASTER_PASSWORD"
        then
                auth_timeout="3"
index 908a9ac..f867db6 100644 (file)
@@ -10,7 +10,7 @@ TIMEOUT="4"
 REAL_INIT="/sbin/init.sysvinit"
 SH_SHELL="/bin/sh"
 
-ENABLE_SOUND="no"
+ENABLE_SOUND="yes"
 
 IMAGE_PATH="boot-images"
 IMAGE_TYPE="ext2"
@@ -20,7 +20,7 @@ ENABLE_IMAGECONF="yes"
 SD_DEVICE="/dev/mmcblk0p1"
 SD_KERNEL_MODULE=""
 
-USB_HOST_AVAILABLE="yes"
+USB_HOST_AVAILABLE="no"
 USB_STORAGE_MODULES="ohci_hcd usb_storage sd_mod"
 USB_STORAGE_PARTITION="/dev/sda1"
 USB_STORAGE_WAIT="4"