[zaptel-commits] tzafrir: branch 1.4 r2726 - /branches/1.4/build_tools/genmodconf

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Wed Jul 11 14:04:59 CDT 2007


Author: tzafrir
Date: Wed Jul 11 14:04:58 2007
New Revision: 2726

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2726
Log:
* Use shell, rather than shell-in-makefile syntax.
* Supress ugly text when /lib/modules/`uname -r` doesn't exist
  (but we build for a different kernel)

(From branches/1.2 r2724)

Modified:
    branches/1.4/build_tools/genmodconf

Modified: branches/1.4/build_tools/genmodconf
URL: http://svn.digium.com/view/zaptel/branches/1.4/build_tools/genmodconf?view=diff&rev=2726&r1=2725&r2=2726
==============================================================================
--- branches/1.4/build_tools/genmodconf (original)
+++ branches/1.4/build_tools/genmodconf Wed Jul 11 14:04:58 2007
@@ -42,7 +42,7 @@
 	exit 1
     fi
 elif [ "${1}" = "linux26" ]; then
-    toolver=`/sbin/modprobe --version | awk '{print $$3;}' | cut -d. -f2 | cut -d- -f1`
+    toolver=`/sbin/modprobe --version 2>/dev/null| 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