altboot: Do not show SD-Boot option on Poodle
authorMatthias Hentges <oe@hentges.net>
Mon, 20 Nov 2006 15:48:29 +0000 (15:48 +0000)
committerMatthias Hentges <oe@hentges.net>
Mon, 20 Nov 2006 15:48:29 +0000 (15:48 +0000)
packages/altboot/altboot_0.0.0.bb
packages/altboot/altboot_1.1.0-wip.bb
packages/altboot/files/altboot-menu/15-bootSD
packages/altboot/files/altboot-menu/20-bootCF
packages/altboot/files/altboot-menu/Advanced/40-bootNFS
packages/altboot/files/altboot-menu/Advanced/55-bin-sh
packages/altboot/files/init.altboot
packages/altboot/files/poodle/altboot-2.6.cfg

index 3908b5d..8cc722e 100644 (file)
@@ -20,7 +20,7 @@ RDEPENDS_${PN} = "${PN}-conf"
 
 ######################################################################################
 
-PR = "r49"
+PR = "r50"
 
 ######################################################################################
 
index df9ac5a..1ca672d 100644 (file)
@@ -23,7 +23,7 @@ RDEPENDS_${PN}-conf = "${PN}"
 
 ######################################################################################
 
-WIP_DATE = "20061108"
+WIP_DATE = "20061120"
 PR = "${WIP_DATE}-r1"
 
 ######################################################################################
index 0476a5c..3cf49de 100644 (file)
@@ -7,6 +7,8 @@
 
 M_TITLE="Boot SD card"
 
+test "$DISABLE_SD_BOOT" = yes && exit 0
+
 # This function is activated by init.altboot by calling this script with the "run" option
 run_module() {
        
index 36d6b82..4add6e6 100644 (file)
@@ -7,6 +7,8 @@
 
 M_TITLE="Boot CF card"
 
+test "$DISABLE_CF_BOOT" = yes && exit 0
+
 # This function is activated by init.altboot by calling this script with the "run" option
 run_module() {
        
index 87373d8..4f5c195 100644 (file)
@@ -9,6 +9,8 @@
 
 M_TITLE="Boot from NFS"
 
+test "$DISABLE_NFS_BOOT" = yes && exit 0
+
 # This function is activated by init.altboot by calling this script with the "run" option
 run_module() {
 
index 4619e51..6c9aef3 100644 (file)
@@ -1,6 +1,7 @@
 # !/bin/sh
 M_TITLE="init=/bin/sh"
 
+test "$DISABLE_BINSH_BOOT" = yes && exit 0
 
 run_module() {
        
index b872af2..033fb21 100644 (file)
@@ -95,7 +95,9 @@ show_menu() {
        do      
                if ! test -d "$1/$file"
                then                    
-                       M_TITLE="`$1/$file title`"
+                       # NOTE: It is important to use "." here so that the script inherits
+                       # the shell environment / all set variables!                                            
+                       M_TITLE="`. $1/$file title`"
                        FLAGS="`$1/$file flags`"
                        
                        if ! test -z "$M_TITLE"
index d976ee3..908a9ac 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Altboot machine configuration for: Akita / Kernel 2.6
+# Altboot machine configuration for: Poodle / Kernel 2.6
 #
 
 # Handled by /sbin/init.altboot
@@ -10,7 +10,7 @@ TIMEOUT="4"
 REAL_INIT="/sbin/init.sysvinit"
 SH_SHELL="/bin/sh"
 
-ENABLE_SOUND="yes"
+ENABLE_SOUND="no"
 
 IMAGE_PATH="boot-images"
 IMAGE_TYPE="ext2"
@@ -20,7 +20,7 @@ ENABLE_IMAGECONF="yes"
 SD_DEVICE="/dev/mmcblk0p1"
 SD_KERNEL_MODULE=""
 
-USB_HOST_AVAILABLE="no"
+USB_HOST_AVAILABLE="yes"
 USB_STORAGE_MODULES="ohci_hcd usb_storage sd_mod"
 USB_STORAGE_PARTITION="/dev/sda1"
 USB_STORAGE_WAIT="4"
@@ -39,3 +39,7 @@ ASK_PW_ON_BOOT="no"
 
 SD_MOUNTPOINT="/media/card"
 CF_MOUNTPOINT="/media/cf"
+
+# Poodle already boots off SD natively!
+DISABLE_SD_BOOT="yes"
+