diff options
author | Aaron Griffin <aaron@archlinux.org> | 2006-04-28 08:10:13 +0200 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-04-28 08:10:13 +0200 |
commit | 3a764f2b15c44b17d098629de5eacdd164b5ddc7 (patch) | |
tree | 364ac89cc9e426c8c9627163d06fdeef2f60ce3d /functions | |
parent | 8fd8b1c7ff0a82c876d58106e904d1e6f6716db5 (diff) | |
download | mkinitcpio-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
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 () |