summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-05-23 17:51:00 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-05-23 17:51:00 +0000
commitdc88485020b7b743cc2f5316d1d711b56bfb88f9 (patch)
tree9ba484aa7a1d8284a7101dd5992e0312c7e2fbfe /build_tools
parent4a779c13cadc1af20cf4d5ab8de59e7b962c8738 (diff)
handle distros that ship pre-releases of module-init-tools
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1081 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'build_tools')
-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