summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-04-21 00:10:06 +0200
committerAaron Griffin <aaron@archlinux.org>2006-04-21 00:10:06 +0200
commitacc783c8af5514083e542fe7d91be6a1c5920ad7 (patch)
treef5bfb086a893fa832064023750e903cc3b511c2c
parent56326bb6b78eacc92b71e55a28974bf335396644 (diff)
downloadmkinitcpio-acc783c8af5514083e542fe7d91be6a1c5920ad7.tar.gz
mkinitcpio-acc783c8af5514083e542fe7d91be6a1c5920ad7.tar.xz
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@4 880c04e9-e011-0410-abf7-b926e227c9cd
-rw-r--r--mkinitcpio5
1 files changed, 3 insertions, 2 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 09adc25..714b152 100644
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -93,12 +93,13 @@ auto_modules ()
{
aliases=$(find /sys/devices/ -name modalias -exec cat {} \;)
modprobe --show-depends -a $aliases 2>/dev/null |\
- sed "s|insmod \(.*\)|\1|" | sort -u
+ sed "s|insmod \(.*\)|\1|" | grep "${1}" | sort -u
}
all_modules ()
{
- find ${MODULEDIR} -name *.ko 2>/dev/null | sort -u
+ find ${MODULEDIR} -name *.ko 2>/dev/null |\
+ grep "${1}" | sort -u
}
msg() { [ "${QUIET}" = "n" ] && echo "${@}"; }