4 # Note for Spitz: The HDD has already been mounted in /media/hdd from
5 # /etc/altboot.rc/00-Default.sh
8 echo "ERROR: $1" >/dev/tty0
9 exec $SH_SHELL </dev/tty0 >/dev/tty0 2>&1
14 test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"
16 test -z "$SPITZ_HDD_PART" && SPITZ_HDD_PART="/dev/hda1"
17 echo "Spitz: Mounting [$SPITZ_HDD_PART] as /media/hdd"
18 mount -t proc proc /proc || echo "Mounting /proc failed!"
22 # Note: Redirecting STDIN & STDOUT is required, cardmg will die otherwise
23 cardmgr -o < /dev/tty0 > /dev/tty0 2>&1 || echo "cardmgr -o failed!"
25 check_fs $SPITZ_HDD_PART $SPITZ_HDD_TYPE
26 if [ "$SPITZ_HDD_TYPE" = "" ]; then
30 # I've seen busybox die a horrible death on "!"...
31 if (mount -t $SPITZ_HDD_TYPE $SPITZ_HDD_PART /media/hdd)
35 echo "ERROR: mount -t ext3 $SPITZ_HDD_PART /media/hdd failed!"
36 exec $SH_SHELL </dev/tty0 >/dev/tty0 2>&1
39 # There are no device files on Spitz yet, requires HDD (bad for testing
43 ! test -e /dev/loop$n && mknod /dev/loop$n b 7 $n
46 # Check for /sbin/init and / or loop-images
47 check_target "/media/hdd" 5
51 title) echo "$M_TITLE";;