summaryrefslogtreecommitdiff
path: root/packages/altboot/files/fic-gta01/altboot-menu/15-bootSD
diff options
context:
space:
mode:
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>2007-03-16 16:54:31 +0000
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>2007-03-16 16:54:31 +0000
commitd533fcda97f0fd7f8ed44619da3a7b87537b9ae8 (patch)
tree62351538698fc3464b05763637d37ed5da16d9e8 /packages/altboot/files/fic-gta01/altboot-menu/15-bootSD
parent86c228e54834a26fa885386484a476079039e3e5 (diff)
parentfd25fcd294309185346b0f4c7a18b94b0b408d35 (diff)
merge of 'be6200db697731daae7d15a8ac5ca6b54f62a6d0'
and 'e68c7275015e0b7f4e92aa7483c3d7038567a3dc'
Diffstat (limited to 'packages/altboot/files/fic-gta01/altboot-menu/15-bootSD')
-rw-r--r--packages/altboot/files/fic-gta01/altboot-menu/15-bootSD32
1 files changed, 32 insertions, 0 deletions
diff --git a/packages/altboot/files/fic-gta01/altboot-menu/15-bootSD b/packages/altboot/files/fic-gta01/altboot-menu/15-bootSD
new file mode 100644
index 0000000000..3cf49deea5
--- /dev/null
+++ b/packages/altboot/files/fic-gta01/altboot-menu/15-bootSD
@@ -0,0 +1,32 @@
+# !/bin/sh
+#
+# Copyright Matthias Hentges (c) 2005
+#
+# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the GPL)
+
+
+M_TITLE="Boot SD card"
+
+test "$DISABLE_SD_BOOT" = yes && exit 0
+
+# This function is activated by init.altboot by calling this script with the "run" option
+run_module() {
+
+ test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"
+
+ # Mount /proc, etc
+ init_rootfs
+
+ mount_sd
+
+ # Check for a real fs and loop-images.
+ check_target "$SD_MOUNTPOINT" >/dev/tty0
+
+}
+
+
+case "$1" in
+title) echo "$M_TITLE";;
+run) run_module "$2";;
+esac
+