3 # Copyright Matthias Hentges (c) 2005
5 # License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the GPL)
7 # FXIME: boot CF on spitz (hdb??)
10 M_TITLE="Boot CF card"
13 echo "ERROR: $1" >/dev/tty0
14 exec $SH_SHELL </dev/tty0 >/dev/tty0 2>&1
17 # This function is activated by init.altboot by calling this script with the "run" option
20 test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"
22 echo -n "Mounting rootfs rw..." >/dev/tty0
23 mount -o remount,rw / >/dev/tty0 2>&1 && echo ok >/dev/tty0|| die "mount -o remount,rw / failed"
25 echo -n "Generating device files..." >/dev/tty0
26 /etc/init.d/devices start && echo ok >/dev/tty0|| die "FAILED"
29 echo -n "Mounting /proc..." >/dev/tty0
30 mount /proc >/dev/tty0 2>&1 && echo ok >/dev/tty0|| die "mount /proc failed!"
32 /etc/init.d/pcmcia start || die "/etc/init.d/pcmcia/start failed!"
36 # Give the SD and CF mounting some time. This is a must for SD
39 # Check for a real fs and loop-images.
40 check_target "$CF_MOUNTPOINT"
46 title) echo "$M_TITLE";;
47 run) run_module "$2";;