summaryrefslogtreecommitdiffstats
path: root/install/sata
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/sata
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/sata')
-rw-r--r--install/sata6
1 files changed, 4 insertions, 2 deletions
diff --git a/install/sata b/install/sata
index c9b67c3..c6a2ade 100644
--- a/install/sata
+++ b/install/sata
@@ -1,12 +1,14 @@
#!/bin/bash
build() {
+ local filter added
+
for filter in 'scsi/.*ata' 'block/sx8' 'ata/sata_*' \
'ata/ahci' 'ata/pdc_adma' 'ata/ata_piix'; do
- MODULES+=" $(checked_modules "$filter")"
+ add_checked_modules "$filter" && (( ++added ))
done
- [[ $MODULES ]] && MODULES+=" sd_mod?"
+ (( added )) && add_module "sd_mod?"
}
help() {