Re: [PATCH] USB and Driver Core patches for 2.6.10

Greg KH
2005-01-08T06:53:57Z

ChangeSet 1.1938.439.46, 2005/01/06 16:39:01-08:00, juhl-lkml@dif.dk

[PATCH] add printing of udev version to scripts/ver_linux

Since udev is starting to be used a lot of places and I've seen people get
asked about their udev version a few times on lkml I figured it was
perhaps time that scripts/ver_linux reported this info so it would get
into more bugreports by default.

This patch adds printing of udev version to scripts/ver_linux

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>

Documentation/Changes | 10 +++++++++-
scripts/ver_linux | 2 ++
2 files changed, 11 insertions(+), 1 deletion(-)

diff -Nru a/Documentation/Changes b/Documentation/Changes
--- a/Documentation/Changes 2005-01-07 15:39:00 -08:00
+++ b/Documentation/Changes 2005-01-07 15:39:00 -08:00
@@ -223,6 +223,11 @@
version v0.99.0 or higher. Running old versions may cause problems
with programs using shared memory.

+Udev
+----
+Udev is a userspace application for populating /dev dynamically with
+only entries for devices actually present. Udev replaces devfs.
+
Networking
==========

@@ -368,6 +373,10 @@
----------
o <http://powertweak.sourceforge.net/>

+Udev
+----
+o <http://www.kernel.org/pub/linux/utils/kernel/hotplug/>
+
Networking
**********

@@ -398,5 +407,4 @@
NFS-Utils
---------
o <http://nfs.sourceforge.net/>
-

diff -Nru a/scripts/ver_linux b/scripts/ver_linux
--- a/scripts/ver_linux 2005-01-07 15:39:00 -08:00
+++ b/scripts/ver_linux 2005-01-07 15:39:00 -08:00
@@ -87,6 +87,8 @@

expr --v 2>&1 | awk 'NR==1{print "Sh-utils ", $NF}'

+udevinfo -V | awk '{print "udev ", $3}'
+
if [ -e /proc/modules ]; then
X=`cat /proc/modules | sed -e "s/ .*$//"`
echo "Modules Loaded "$X