diff options
author | Michael Lauer <mickey@vanille-media.de> | 2006-04-06 22:39:32 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-04-06 22:39:32 +0000 |
commit | 6c97f56d28872da36cc0cc52631668985d8db22a (patch) | |
tree | 3957d53afc5c22540dedd5c61af13b28149a5b55 /packages/altboot/files/spitz/altboot-menu/00-Default | |
parent | 3bcd16909c945940017ded43f94652f1a7acf2f5 (diff) | |
parent | 254167bc41a3aae1c45a5f769ec16dee2dd37e2e (diff) |
merge of 5945a66a6847c21d25595376695c23f3971f6f8a
and e544df2d6779a2a53f1c47a6d1e1961d875d17af
Diffstat (limited to 'packages/altboot/files/spitz/altboot-menu/00-Default')
-rw-r--r-- | packages/altboot/files/spitz/altboot-menu/00-Default | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/packages/altboot/files/spitz/altboot-menu/00-Default b/packages/altboot/files/spitz/altboot-menu/00-Default deleted file mode 100644 index 01818262a3..0000000000 --- a/packages/altboot/files/spitz/altboot-menu/00-Default +++ /dev/null @@ -1,54 +0,0 @@ -# !/bin/sh -M_TITLE="Normal Boot" - -# Note for Spitz: The HDD has already been mounted in /media/hdd from -# /etc/altboot.rc/00-Default.sh - -die() { - echo "ERROR: $1" >/dev/tty0 - exec $SH_SHELL </dev/tty0 >/dev/tty0 2>&1 -} - -run_module() { - - test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!" - - test -z "$SPITZ_HDD_PART" && SPITZ_HDD_PART="/dev/hda1" - echo "Spitz: Mounting [$SPITZ_HDD_PART] as /media/hdd" - mount -t proc proc /proc || echo "Mounting /proc failed!" - - mount -o remount,rw / - - # 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 $SPITZ_HDD_TYPE $SPITZ_HDD_PART /media/hdd) - then - a=a - else - echo "ERROR: mount -t ext3 $SPITZ_HDD_PART /media/hdd failed!" - exec $SH_SHELL </dev/tty0 >/dev/tty0 2>&1 - fi - - # There are no device files on Spitz yet, requires HDD (bad for testing - # with CF) - for n in 0 1 2 3 4 5 - do - ! test -e /dev/loop$n && mknod /dev/loop$n b 7 $n - done - - # Check for /sbin/init and / or loop-images - check_target "/media/hdd" 5 -} - -case "$1" in -title) echo "$M_TITLE";; -run) run_module;; -esac - |