summaryrefslogtreecommitdiff
path: root/scripts/ver_linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-04-11 23:00:24 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-04-11 23:00:24 -0700
commit3bca5aa3e53f330d9f239503639b24308418bb2e (patch)
treeb641636d4f791019b6066cbe9d3aa13c8a5170eb /scripts/ver_linux
parentf951179269c98ac7b58dcfa3de2e68d4a0a3d680 (diff)
[PATCH] ver_linux fix
From: Rusty Russell <rusty@rustcorp.com.au> From: Adrian Bunk <bunk@fs.tum.de> Some versions of ps print non-version lines when ps --version is invoked. grep them out.
Diffstat (limited to 'scripts/ver_linux')
-rwxr-xr-xscripts/ver_linux3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/ver_linux b/scripts/ver_linux
index bec902b2f7c0..47f14cbac39e 100755
--- a/scripts/ver_linux
+++ b/scripts/ver_linux
@@ -68,7 +68,8 @@ ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \
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}'