mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.5 patch]
@ 2003-06-18 23:33 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2003-06-18 23:33 UTC (permalink / raw)
  To: linux-kernel; +Cc: trivial, bwindle-kbt

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-18 23:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-18 23:33 [2.5 patch] Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®