patch-2.2.6 linux/scripts/ver_linux

Next file: linux/Documentation/Changes
Previous file: linux/net/netlink/af_netlink.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.5/linux/scripts/ver_linux linux/scripts/ver_linux
@@ -20,10 +20,7 @@
        '{print "Linux C++ Library      " $4"."$5"."$6}'
 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 }}
- NR==2{if (done != 1) ver=$3 }
- END{print "Net-tools             ",ver}'
+hostname -V 2>&1 | awk 'NR==1{print "Net-tools             ", $NF}'
 loadkeys -h 2>&1 | awk \
 '(NR==1 && $3) {ver=$3}
  (NR==2 && $1 ~ /console-tools/) {print "Console-tools         ",$3; done=1}


FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)