[zaptel-commits] branch 1.2 r1081 - /branches/1.2/build_tools/genmodconf

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Tue May 23 10:51:00 MST 2006


Author: kpfleming
Date: Tue May 23 12:51:00 2006
New Revision: 1081

URL: http://svn.digium.com/view/zaptel?rev=1081&view=rev
Log:
handle distros that ship pre-releases of module-init-tools

Modified:
    branches/1.2/build_tools/genmodconf

Modified: branches/1.2/build_tools/genmodconf
URL: http://svn.digium.com/view/zaptel/branches/1.2/build_tools/genmodconf?rev=1081&r1=1080&r2=1081&view=diff
==============================================================================
--- branches/1.2/build_tools/genmodconf (original)
+++ branches/1.2/build_tools/genmodconf Tue May 23 12:51:00 2006
@@ -42,7 +42,7 @@
 	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



More information about the zaptel-commits mailing list