]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/altboot/files/altboot-menu/15-bootSD
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / altboot / files / altboot-menu / 15-bootSD
1 # !/bin/sh
2 #
3 # Copyright Matthias Hentges (c) 2005
4 #
5 # License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the GPL)
6
7
8 M_TITLE="Boot SD card"
9
10 die() {
11         echo "ERROR: $1" >/dev/tty0
12         exec $SH_SHELL </dev/tty0 >/dev/tty0 2>&1
13 }
14
15 # This function is activated by init.altboot by calling this script with the "run" option
16 run_module() {
17         
18         test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"  
19         
20         # Mount /proc, etc
21         init_rootfs
22
23         mount_sd
24
25         # Check for a real fs and loop-images.
26         check_target "$SD_MOUNTPOINT" >/dev/tty0
27                 
28 }
29
30
31 case "$1" in
32 title)  echo "$M_TITLE";;
33 run)    run_module "$2";;
34 esac
35