[2.5 patch]

Adrian Bunk (bunk@fs.tum.de)
Thu, 19 Jun 2003 01:33:28 +0200


Burton Windle sent a patch that does the following (slightly reformatted
by me) in Bugzilla #142:

--- linux-2.5.72/scripts/ver_linux.old 2003-06-19 01:26:24.000000000 +0200
+++ linux-2.5.72/scripts/ver_linux 2003-06-19 01:27:53.000000000 +0200
@@ -61,7 +61,8 @@
ls -l /usr/lib/lib{g,stdc}++.so 2>/dev/null | awk -F. \
'{print "Linux C++ Library " $4"."$5"."$6}'

-ps --version 2>&1 | awk 'NR==1{print "Procps ", $NF}'
+ps --version 2>&1 | grep version | awk \
+'NR==1{print "Procps ", $NF}'

ifconfig --version 2>&1 | grep tools | awk \
'NR==1{print "Net-tools ", $NF}'

Explanation by Burton (from Bugzilla) follows below.

Please apply
Adrian

<-- snip -->

With the current 2.5 Linux kernel, the ver_linux script prints bad
version
info for the Procps line:

Procps 100.

Steps to reproduce:
This is because
razor:/giant/linux/scripts# ps --version
Unknown HZ value! (85) Assume 100.
procps version 2.0.7
razor:/giant/linux/scripts# ps --version 2>&1 | awk 'NR==1
{print "Procps , $NF}'
Procps 100.

<-- snip -->

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