tree 02dc62f231bc65bfa2bc665b34ccc45e48270397
parent 46ea0d6c26de431a39c744f7ad63b30bfc800c1e
author Steven Cole <[EMAIL PROTECTED]> Tue, 19 Apr 2005 11:57:33 -0700
committer Greg KH <[EMAIL PROTECTED]> Tue, 19 Apr 2005 11:57:33 -0700
[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 <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
ver_linux | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: scripts/ver_linux
===================================================================
--- 7328a203f0af0088595f0f7f475605ba8c358db1/scripts/ver_linux (mode:100755
sha1:bb195a1c0f2d28e2ee57198917db2c8aea1609fe)
+++ 02dc62f231bc65bfa2bc665b34ccc45e48270397/scripts/ver_linux (mode:100755
sha1:a28c279c49dd043b86aa976ce58bd01261d86410)
@@ -87,7 +87,7 @@
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/ .*$//"`
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html