All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Cole <elenstev@mesatop.com>
To: Greg KH <greg@kroah.com>
Cc: Andrew Morton <akpm@osdl.org>, lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] 2.6.12-rc1-mm3 Fix ver_linux script for no udev utils.
Date: Tue, 29 Mar 2005 09:30:56 -0700	[thread overview]
Message-ID: <424982C0.5000708@mesatop.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 301 bytes --]

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.

Steven
TSPA (Technical data or Software Publicly Available)





[-- Attachment #2: fix_ver_linux_for_no_udev.patch --]
[-- Type: text/plain, Size: 518 bytes --]

Signed-off-by: Steven Cole <elenstev@mesatop.com>

--- linux-2.6.12-rc1-mm3/scripts/ver_linux.orig	2005-03-29 08:52:35.000000000 -0700
+++ linux-2.6.12-rc1-mm3/scripts/ver_linux	2005-03-29 09:04:37.000000000 -0700
@@ -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/ .*$//"`

             reply	other threads:[~2005-03-29 16:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-29 16:30 Steven Cole [this message]
2005-04-08 22:18 ` [PATCH] 2.6.12-rc1-mm3 Fix ver_linux script for no udev utils Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=424982C0.5000708@mesatop.com \
    --to=elenstev@mesatop.com \
    --cc=akpm@osdl.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.