diff options
author | Aaron Griffin <aaron@archlinux.org> | 2006-04-21 00:10:06 +0200 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-04-21 00:10:06 +0200 |
commit | acc783c8af5514083e542fe7d91be6a1c5920ad7 (patch) | |
tree | f5bfb086a893fa832064023750e903cc3b511c2c | |
parent | 56326bb6b78eacc92b71e55a28974bf335396644 (diff) | |
download | mkinitcpio-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-- | mkinitcpio | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 "${@}"; } |