From: Burton Windle <bwindle@fint.org>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] fix problem with ver_linux script and procps version
Date: Fri, 6 Dec 2002 10:29:30 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.43.0212061014550.10336-200000@morpheus> (raw)
[-- 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}'
reply other threads:[~2002-12-06 15:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.43.0212061014550.10336-200000@morpheus \
--to=bwindle@fint.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®