summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-07-11 18:58:09 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-07-11 18:58:09 +0000
commit1c66b7190f32a62046f90228f87b8d4a7dabcbab (patch)
tree38fac4db2fbd1000ff8189646495cf29ab90095d /build_tools
parentc9021f6ad54c433a1d4bf3dfc140236175ab8930 (diff)
* 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) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2724 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 9f65d8b..ada453e 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 | 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