summaryrefslogtreecommitdiffstats
path: root/install/usb
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-05-11 23:21:36 +0200
committerDave Reisner <dreisner@archlinux.org>2012-05-18 15:39:04 +0200
commitb7c1887306c1067984b5e5b564f25a12631b8162 (patch)
tree9c8320a2f99da70ce539d744e3c047f22a0ca33b /install/usb
parent261b731e8fb918309f2740b5262d9678378491fa (diff)
downloadmkinitcpio-b7c1887306c1067984b5e5b564f25a12631b8162.tar.gz
mkinitcpio-b7c1887306c1067984b5e5b564f25a12631b8162.tar.xz
use new API for install hooks
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'install/usb')
-rw-r--r--install/usb12
1 files changed, 5 insertions, 7 deletions
diff --git a/install/usb b/install/usb
index fcb2a47..2b36c35 100644
--- a/install/usb
+++ b/install/usb
@@ -1,13 +1,11 @@
#!/bin/bash
build() {
- local module=
-
- MODULES="$(checked_modules "/usb/host" | grep -ve "_cs" -e "sl811_hcd" -e "isp116x_hcd")"
-
- if [[ $MODULES ]]; then
- MODULES+=" usb_storage? sd_mod? sr_mod?"
- MODULES+=" $(checked_modules "drivers/usb/storage/ums-*")"
+ if add_checked_modules -f '(_cs|sl811_hcd|isp116x_hcd)' '/usb/host'; then
+ add_module 'usb_storage?'
+ add_module 'sd_mod?'
+ add_module 'sr_mod?'
+ add_checked_modules 'drivers/usb/storage/ums-*'
fi
}