* [PATCH] 2.6.12-rc1-mm3 Fix ver_linux script for no udev utils.
@ 2005-03-29 16:30 Steven Cole
2005-04-08 22:18 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Steven Cole @ 2005-03-29 16:30 UTC (permalink / raw)
To: Greg KH; +Cc: Andrew Morton, lkml
[-- 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/ .*$//"`
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] 2.6.12-rc1-mm3 Fix ver_linux script for no udev utils.
2005-03-29 16:30 [PATCH] 2.6.12-rc1-mm3 Fix ver_linux script for no udev utils Steven Cole
@ 2005-04-08 22:18 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2005-04-08 22:18 UTC (permalink / raw)
To: Steven Cole; +Cc: Andrew Morton, lkml
On Tue, Mar 29, 2005 at 09:30:56AM -0700, Steven Cole wrote:
> 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)
Applied, thanks.
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-08 22:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-29 16:30 [PATCH] 2.6.12-rc1-mm3 Fix ver_linux script for no udev utils Steven Cole
2005-04-08 22:18 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox