summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-04-21 19:22:38 +0200
committerDave Reisner <dreisner@archlinux.org>2012-04-22 05:43:52 +0200
commitb5cd0b31a03772056137db8246b3696844843713 (patch)
tree14607ae1952df5f568ec43a66591f37790ad0844
parentdf69072eedfa95b6b42270a3053af2dcea35e004 (diff)
downloadmkinitcpio-b5cd0b31a03772056137db8246b3696844843713.tar.gz
mkinitcpio-b5cd0b31a03772056137db8246b3696844843713.tar.xz
mmc: add install hook
Thanks to Radoslaw Nadstawny (Rad3k) for writing this. Satsifies FS#21022. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-xinstall/mmc19
1 files changed, 19 insertions, 0 deletions
diff --git a/install/mmc b/install/mmc
new file mode 100755
index 0000000..fb89239
--- /dev/null
+++ b/install/mmc
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+build() {
+ MODULES=$(checked_modules "/mmc")
+
+ if [[ $MODULES ]]; then
+ MODULES+=" tifm_7xx1 mmc_block"
+ fi
+}
+
+help() {
+ cat <<HELPEOF
+This hook loads the necessary modules for a mmc root device. Detection will
+take place at runtime. To minimize the modules in the image, add the autodetect
+hook too.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et: