[zaptel-commits] tzafrir: branch 1.2 r2724 - /branches/1.2/build_tools/genmodconf

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Wed Jul 11 13:58:09 CDT 2007


Author: tzafrir
Date: Wed Jul 11 13:58:09 2007
New Revision: 2724

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2724
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)

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?view=diff&rev=2724&r1=2723&r2=2724
==============================================================================
--- branches/1.2/build_tools/genmodconf (original)
+++ branches/1.2/build_tools/genmodconf Wed Jul 11 13:58:09 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