Hi there.
>> It is usually a good idea to run
>> sh /usr/src/linux/scripts/ver_linux
>> and include the output when reporting kernel problems.
There's one obvious problem with the ver_linux script, which can
be found by doing the following under bash or the equivalent
under csh or the like:
alias ls='ls -F'
. ver_linux
Watch the said script give completely crazy results!!! I've had
that alias in my ~/.bashrc for several years now.
Here's the patch that I first submitted for when kernel 2.0.36
was current, which deals with this once and for all without
destroying the user's environment. This patch is against 2.3.51
for reference.
===8<=== CUT ===>8===
--- ver_linux~ Wed Dec 15 07:05:03 1999
+++ ver_linux Mon Mar 13 00:52:58 2000
@@ -1,10 +1,20 @@
#!/bin/sh
+
# Before running this script please ensure that your PATH is
-# typical as you use for compilation/istallation. I use
+# typical as you use for compilation/installation. I use
# /bin /sbin /usr/bin /usr/sbin /usr/local/bin, but it may
# differ on your system.
-#
+
PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
+
+# The following if deals with the possibility of aliases being
+# set that would otherwise foul this script up - rhw@memalpha.cx
+#
+
+if [ $# -eq 0 -o "$1" != "Verified OK" ]; then
+ /bin/sh $0 'Verified OK'
+else
+unalias -a
echo '-- Versions installed: (if some fields are empty or look'
echo '-- unusual then possibly you have very old versions)'
uname -a
@@ -30,3 +40,6 @@
expr --v 2>&1 | awk 'NR==1{print "Sh-utils ", $NF}'
X=`cat /proc/modules | sed -e "s/ .*$//"`
echo "Modules Loaded "$X
+fi
+
+# EOF.
===8<=== CUT ===>8===
ALAN: Any chance this will get included this time?
Best wishes from Riley.
* Copyright (C) 2000, Memory Alpha Systems.
* All rights and wrongs reserved.
+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* http://www.memalpha.cx/Linux/Kernel/
-
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/
This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:23 EST