summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-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 ()