mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fix problem with ver_linux script and procps version
@ 2002-12-06 15:29 Burton Windle
  0 siblings, 0 replies; only message in thread
From: Burton Windle @ 2002-12-06 15:29 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1588 bytes --]

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

Procps                 100.


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.


This patch fixes this.

--- linux/scripts/ver_linux.orig        2002-12-06 10:18:05.000000000 -0500
+++ linux/scripts/ver_linux     2002-12-06 10:18:19.000000000 -0500
@@ -61,7 +61,7 @@
 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}'



With the patch, ver_linux looks sane again.
Linux razor 2.5.50bk5 #1 Thu Dec 5 17:28:23 EST 2002 i686 Pentium II (Klamath) GenuineIntel GNU/Linux

Gnu C                  2.95.4
Gnu make               3.79.1
util-linux             2.11n
mount                  2.11n
modutils               2.4.19
e2fsprogs              1.30-WIP
Linux C Library        2.2.5
Dynamic linker (ldd)   2.2.5
Procps                 2.0.7
Net-tools              1.60
Console-tools          0.2.3
Sh-utils               4.5.2
Modules Loaded



--
Burton Windle                           burton@fint.org
Linux: the "grim reaper of innocent orphaned children."
          from /usr/src/linux-2.4.18/init/main.c:461


[-- Attachment #2: patch to fix procps in ver_linux --]
[-- Type: TEXT/PLAIN, Size: 528 bytes --]

--- linux/scripts/ver_linux.orig	2002-12-06 10:18:05.000000000 -0500
+++ linux/scripts/ver_linux	2002-12-06 10:18:19.000000000 -0500
@@ -61,7 +61,7 @@
 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}'

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

only message in thread, other threads:[~2002-12-06 15:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-06 15:29 [PATCH] fix problem with ver_linux script and procps version Burton Windle

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®