summaryrefslogtreecommitdiff
path: root/build_tools/genmodconf
diff options
context:
space:
mode:
Diffstat (limited to 'build_tools/genmodconf')
-rwxr-xr-xbuild_tools/genmodconf2
1 files changed, 1 insertions, 1 deletions
diff --git a/build_tools/genmodconf b/build_tools/genmodconf
index 32435ee..57013a0 100755
--- a/build_tools/genmodconf
+++ b/build_tools/genmodconf
@@ -42,7 +42,7 @@ if [ "${1}" == "linux24" ]; then
exit 1
fi
elif [ "${1}" == "linux26" ]; then
- toolver=`/sbin/modprobe --version | awk '{print $$3;}' | cut -d. -f2`
+ toolver=`/sbin/modprobe --version | awk '{print $$3;}' | cut -d. -f2 | cut -d- -f1`
if [ ${toolver} -ge 2 ]; then
cmdopts=\$CMDLINE_OPTS
fi