diff options
author | Matthias Hentges <oe@hentges.net> | 2005-08-09 15:30:31 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-08-09 15:30:31 +0000 |
commit | 7932f599f2e825c26e85a3ed5b713bc7c35b2ede (patch) | |
tree | f6a360059d75d70490c3a94278be4de32d94c709 /packages/altboot/files/spitz | |
parent | f603ad225becb7149cfde643c3f868dd4db275db (diff) |
altboot: Lots and lots of Spitz adjustments, courtesy of JustinP
Diffstat (limited to 'packages/altboot/files/spitz')
-rw-r--r-- | packages/altboot/files/spitz/altboot-menu/00-Default | 9 | ||||
-rw-r--r-- | packages/altboot/files/spitz/altboot-menu/10-noGui | 2 | ||||
-rw-r--r-- | packages/altboot/files/spitz/altboot.cfg | 10 |
3 files changed, 16 insertions, 5 deletions
diff --git a/packages/altboot/files/spitz/altboot-menu/00-Default b/packages/altboot/files/spitz/altboot-menu/00-Default index c18633a136..06ed038473 100644 --- a/packages/altboot/files/spitz/altboot-menu/00-Default +++ b/packages/altboot/files/spitz/altboot-menu/00-Default @@ -21,9 +21,14 @@ run_module() { # Note: Redirecting STDIN & STDOUT is required, cardmg will die otherwise cardmgr -o < /dev/tty0 > /dev/tty0 2>&1 || echo "cardmgr -o failed!" + + check_fs $SPITZ_HDD_PART $SPITZ_HDD_TYPE + if [ "$SPITZ_HDD_TYPE" = "" ]; then + SPITZ_HDD_TYPE="auto" + fi # I've seen busybox die a horrible death on "!"... - if (mount -t auto $SPITZ_HDD_PART /media/hdd) + if (mount -t $SPITZ_HDD_TYPE $SPITZ_HDD_PART /media/hdd) then a=a else @@ -35,7 +40,7 @@ run_module() { # with CF) for n in 1 2 3 4 5 do - mknod /dev/loop$n b 7 $n + ! test -e /dev/loop$n && mknod /dev/loop$n b 7 $n done # Check for /sbin/init and / or loop-images diff --git a/packages/altboot/files/spitz/altboot-menu/10-noGui b/packages/altboot/files/spitz/altboot-menu/10-noGui index 3f1ce81fd5..e4e8b0fe37 100644 --- a/packages/altboot/files/spitz/altboot-menu/10-noGui +++ b/packages/altboot/files/spitz/altboot-menu/10-noGui @@ -33,7 +33,7 @@ run_module() { # with CF) for n in 1 2 3 4 5 do - mknod /dev/loop$n b 7 $n + ! test -e /dev/loop$n && mknod /dev/loop$n b 7 $n done # Check for /sbin/init and / or loop-images diff --git a/packages/altboot/files/spitz/altboot.cfg b/packages/altboot/files/spitz/altboot.cfg index 7ae0770086..2640d9279a 100644 --- a/packages/altboot/files/spitz/altboot.cfg +++ b/packages/altboot/files/spitz/altboot.cfg @@ -4,9 +4,10 @@ # the ROM. This is currently broken. ENABLE_ALTBOOT="yes" TIMEOUT="3" -REAL_INIT="/sbin/init.sysvinit" +REAL_INIT="/sbin/init" SH_SHELL="/bin/sh" IMAGE_PATH="boot-images" +IMAGE_TYPE="ext3" FSCK_IMAGES="yes" SD_DEVICE="/dev/mmcda1" SD_KERNEL_MODULE="/media/hdd/lib/modules/2.4.20/kernel/drivers/block/sharp_mmcsd_m.o" @@ -14,8 +15,13 @@ INIT_RUNLEVEL="5" NO_GUI_RL="2" MASTER_PASSWORD="" ASK_PW_ON_BOOT="no" -SPITZ_HDD_PART="/dev/hda1" SD_MOUNTPOINT="/media/card" CF_MOUNTPOINT="/media/cf" +HDD3_DEVICE="/dev/hda3" +HDD3_MOUNTPOINT="/media/hdd3" +HDD3_TYPE="vfat" + +SPITZ_HDD_PART="/dev/hda1" +SPITZ_HDD_TYPE="ext3" |