From 3a764f2b15c44b17d098629de5eacdd164b5ddc7 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Fri, 28 Apr 2006 06:10:13 +0000 Subject: 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 --- functions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'functions') 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 () -- cgit v1.2.3-24-g4f1b