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

From: Jesper Juhl
Date: Wed Dec 29 2004 - 20:37:37 EST



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@xxxxxx>

diff -u linux-2.6.10-bk2-orig/scripts/ver_linux linux-2.6.10-bk2/scripts/ver_linux
--- linux-2.6.10-bk2-orig/scripts/ver_linux 2004-12-24 22:35:00.000000000 +0100
+++ linux-2.6.10-bk2/scripts/ver_linux 2004-12-30 02:21:34.000000000 +0100
@@ -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



I guess it would also make sense to also add a tiny bit of text about udev
to Documentation/Changes if the above goes in - if so there's a possible
patch to do that below.

Signed-off-by: Jesper Juhl <juhl-lkml@xxxxxx>

diff -u linux-2.6.10-bk2-orig/Documentation/Changes linux-2.6.10-bk2/Documentation/Changes
--- linux-2.6.10-bk2-orig/Documentation/Changes 2004-12-24 22:35:28.000000000 +0100
+++ linux-2.6.10-bk2/Documentation/Changes 2004-12-30 02:42:10.000000000 +0100
@@ -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
**********

@@ -399,4 +408,3 @@
---------
o <http://nfs.sourceforge.net/>

-




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/