From: Steven Cole Date: Tue, 19 Apr 2005 04:57:33 +0000 (-0700) Subject: [PATCH] 2.6.12-rc1-mm3 Fix ver_linux script for no udev utils. X-Git-Tag: v2.6.12-rc3~23^2~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1694145854a309bebd12a5cce63c9b398304e3bb;p=linux-2.6 [PATCH] 2.6.12-rc1-mm3 Fix ver_linux script for no udev utils. Without the attached patch, the ver_linux script gives the following if udev utils are not present. ./scripts/ver_linux: line 90: udevinfo: command not found The patch causes ver_linux to be silent in the case of no udevinfo command. Signed-off-by: Steven Cole Signed-off-by: Greg Kroah-Hartman --- diff --git a/scripts/ver_linux b/scripts/ver_linux index bb195a1c0f..a28c279c49 100755 --- a/scripts/ver_linux +++ b/scripts/ver_linux @@ -87,7 +87,7 @@ loadkeys -V 2>&1 | awk \ expr --v 2>&1 | awk 'NR==1{print "Sh-utils ", $NF}' -udevinfo -V | awk '{print "udev ", $3}' +udevinfo -V 2>&1 | grep version | awk '{print "udev ", $3}' if [ -e /proc/modules ]; then X=`cat /proc/modules | sed -e "s/ .*$//"`