From 3bca5aa3e53f330d9f239503639b24308418bb2e Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 11 Apr 2004 23:00:24 -0700 Subject: [PATCH] ver_linux fix From: Rusty Russell From: Adrian Bunk Some versions of ps print non-version lines when ps --version is invoked. grep them out. --- scripts/ver_linux | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/ver_linux') 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}' -- cgit v1.2.3