Here's a tiny patch to make the 'ver_linux' script report out the correct
version of the 'net-tools' package.
Pre patch:
[...snip...]
Mount 2.9i
Net-tools (1999-01-31)
Kbd 0.94
[...snip...]
Post patch:
[...snip...]
Mount 2.9i
Net-tools 1.51
Kbd 0.94
[...snip...]
One tiny leap towards world domination.
Enjoy.
Art Haas
===========================================
--- linux-2.2.4/scripts/ver_linux.orig Wed Mar 24 09:13:36 1999
+++ linux-2.2.4/scripts/ver_linux Wed Mar 24 12:45:02 1999
@@ -21,7 +21,8 @@
ps --version 2>&1 | awk 'NR==1{print "Procps ", $NF}'
mount --version | awk -F\- '{print "Mount ", $NF}'
netstat --version | awk \
-'NR==1{if ($5 != "") { n=split($5,buf,"-"); ver=buf[n]; done=1 }}
+'$1 = "net-tools" && $2 ~ /^[0-9]\.[0-9]+$/ {ver=$2; exit}
+ NR==1{if ($5 != "") { n=split($5,buf,"-"); ver=buf[n]; done=1 }}
NR==2{if (done != 1) ver=$3 }
END{print "Net-tools ",ver}'
loadkeys -h 2>&1 | awk \
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/