PATCH: correcting scripts/ver_linux

Rogerio Brito (rbrito@iname.com)
Sat, 16 Oct 1999 23:53:05 -0200


The current version of ver_linux displays weird behavior when
it is grabbing the version number of Sh-utils. Here is a
trivial patch:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--- linux-2.3.21/scripts/ver_linux~ Sat Sep 4 04:18:10 1999
+++ linux-2.3.21/scripts/ver_linux Sat Oct 16 23:46:50 1999
@@ -27,6 +27,6 @@
# while console-tools needs 'loadkeys -V'.
loadkeys -V 2>&1 | awk \
'(NR==1 && ($2 ~/console-tools/)) {print "Console-tools ",
$3}'
-expr --v | awk '{print "Sh-utils ", $NF}'
+expr --v | awk 'NR==1{print "Sh-utils ", $NF}'
X=`cat /proc/modules | sed -e "s/ .*$//"`
echo "Modules Loaded "$X
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

[]s, Roger...

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Rogerio Brito - rbrito@iname.com - http://www.ime.usp.br/~rbrito/
     Nectar homepage: http://www.linux.ime.usp.br/~rbrito/opeth/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

- 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/