summaryrefslogtreecommitdiffstats
path: root/install/fw
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/fw
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/fw')
-rw-r--r--install/fw8
1 files changed, 6 insertions, 2 deletions
diff --git a/install/fw b/install/fw
index f624de0..98c05ab 100644
--- a/install/fw
+++ b/install/fw
@@ -1,9 +1,13 @@
#!/bin/bash
build() {
- MODULES=$(checked_modules "/drivers/firewire/")
+ local mod
- [[ $MODULES ]] && MODULES+=" firewire-sbp2? sd_mod? sr_mod?"
+ if add_checked_modules '/drivers/firewire/'; then
+ for mod in firewire-sbp2 sd_mod sr_mod; do
+ add_module "$mod?"
+ done
+ fi
}
help() {