summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-04-28 08:10:13 +0200
committerAaron Griffin <aaron@archlinux.org>2006-04-28 08:10:13 +0200
commit3a764f2b15c44b17d098629de5eacdd164b5ddc7 (patch)
tree364ac89cc9e426c8c9627163d06fdeef2f60ce3d
parent8fd8b1c7ff0a82c876d58106e904d1e6f6716db5 (diff)
downloadmkinitcpio-3a764f2b15c44b17d098629de5eacdd164b5ddc7.tar.gz
mkinitcpio-3a764f2b15c44b17d098629de5eacdd164b5ddc7.tar.xz
functions: fixed versioning for autodetection
added gen_init_cpio binary, to use elsewhere... git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@36 880c04e9-e011-0410-abf7-b926e227c9cd
-rw-r--r--functions5
1 files changed, 3 insertions, 2 deletions
diff --git a/functions b/functions
index f1a9c54..e7fd578 100644
--- a/functions
+++ b/functions
@@ -2,8 +2,9 @@
auto_modules ()
{
aliases=$(find /sys/devices/ -name modalias -exec cat {} \;)
- modprobe --show-depends -a $aliases 2>/dev/null |\
- sed "s|insmod \(.*\)|\1|" | grep ${@} | sort -u
+ modprobe --set-version ${KERNELVERSION} --show-depends -a \
+ $aliases 2>/dev/null | sed "s|insmod \(.*\)|\1|" |\
+ grep ${@} | sort -u
}
all_modules ()