patch-2.2.4 linux/scripts/ver_linux
Next file: linux/CREDITS
Previous file: linux/scripts/ksymoops/oops.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Mar 16 14:21:52 1999
- Orig file:
v2.2.3/linux/scripts/ver_linux
- Orig date:
Tue Feb 23 15:21:36 1999
diff -u --recursive --new-file v2.2.3/linux/scripts/ver_linux linux/scripts/ver_linux
@@ -8,9 +8,7 @@
echo '-- Versions installed: (if some fields are empty or looks'
echo '-- unusual then possibly you have very old versions)'
uname -a
-insmod -V 1>/tmp/ver_linux.tmp 2>>/tmp/ver_linux.tmp
-awk 'NR==1{print "Kernel modules ",$NF}' /tmp/ver_linux.tmp
-rm -f /tmp/ver_linux.tmp
+insmod -V 2>&1 | awk 'NR==1 {print "Kernel modules ",$NF}'
echo "Gnu C " `gcc --version`
ld -v 2>&1 | awk -F\) '{print $1}' | awk \
'/BFD/{print "Binutils ",$NF}'
@@ -31,3 +29,5 @@
(NR==2 && $1 ~ /console-tools/) {print "Console-tools ",$3; done=1}
END {if (!done) print "Kbd ",ver}'
expr --v | awk '{print "Sh-utils ", $NF}'
+X=`cat /proc/modules | sed -e "s/ .*$//"`
+echo "Modules Loaded "$X
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)