aboutsummarylogtreecommitdiffstats
path: root/live_mmc
diff options
context:
space:
mode:
Diffstat (limited to 'live_mmc')
-rwxr-xr-xlive_mmc19
1 files changed, 7 insertions, 12 deletions
diff --git a/live_mmc b/live_mmc
index 7783489567de..1bf67def728e 100755
--- a/live_mmc
+++ b/live_mmc
@@ -1,20 +1,15 @@
#!/bin/bash
-
-build() {
- local filter
- local -A blockdevs
-
- mmc
- if add_checked_modules '/mmc'; then
- blockdevs+=(['tifm_7xx1?']=1 ['mmc_block?']=1)
- fi
- map add_module "${!blockdevs[@]}"
+build(){
+ # mmc
+ map add_module mmc_block?
+ add_checked_modules '/(mmc|tifm_)'
}
help() {
cat <<HELPEOF
-This hook loads the necessary modules for most block devices using mmc. Detection will take place at runtime. To minimize
-the modules in the image, add the autodetect hook too.
+This hook loads the necessary modules for most block devices using mmc.
+Detection will take place at runtime. To minimize the modules in the image, add
+the autodetect hook too.
HELPEOF
}