diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-04-11 23:00:24 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-11 23:00:24 -0700 |
| commit | 3bca5aa3e53f330d9f239503639b24308418bb2e (patch) | |
| tree | b641636d4f791019b6066cbe9d3aa13c8a5170eb /scripts/ver_linux | |
| parent | f951179269c98ac7b58dcfa3de2e68d4a0a3d680 (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-x | scripts/ver_linux | 3 |
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}' |
