summaryrefslogtreecommitdiff
path: root/build_tools/genmodconf
diff options
context:
space:
mode:
Diffstat (limited to 'build_tools/genmodconf')
-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