blob: d685223cd1c0c9f2dc628784e1fc95f7d3551994 [file] [log] [blame]
robbiew0772b1b2001-10-12 21:03:46 +00001#!/bin/sh
2# Before running this script please ensure that your PATH is
3# typical as you use for compilation/istallation. I use
4# /bin /sbin /usr/bin /usr/sbin /usr/local/bin, but it may
5# differ on your system.
6#
7PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
8echo 'If some fields are empty or look unusual you may have an old version.'
9echo 'Compare to the current minimal requirements in Documentation/Changes.'
10echo ' '
11
robbiew75fe22f2002-03-20 15:43:46 +000012cat /etc/*release 2> /dev/null
13if [ $? = 1 ]; then
14 echo '/etc/issue:'
15 cat /etc/issue 2> /dev/null
16fi
17
robbiew0772b1b2001-10-12 21:03:46 +000018uname -a
19echo ' '
20
robbiew564e8b22005-10-03 20:54:19 +000021echo "Gnu C " `gcc --version 2>/dev/null | head -n 1`
robbiew0772b1b2001-10-12 21:03:46 +000022
23make --version 2>&1 | awk -F, '{print $1}' | awk \
24 '/GNU Make/{print "Gnu make ",$NF}'
25
26ld -v 2>&1 | awk -F\) '{print $1}' | awk \
27 '/BFD/{print "binutils ",$NF}'
28
robbiew564e8b22005-10-03 20:54:19 +000029fdformat --version 2>&1 | awk -F\- '{print "util-linux ", $NF}'
robbiew0772b1b2001-10-12 21:03:46 +000030
robbiew564e8b22005-10-03 20:54:19 +000031mount --version 2>&1 | awk -F\- '{print "mount ", $NF}'
robbiew0772b1b2001-10-12 21:03:46 +000032
33insmod -V 2>&1 | awk 'NR==1 {print "modutils ",$NF}'
34
robbiew559e5962001-12-18 16:14:23 +000035tune2fs 2>&1 | grep "^tune2fs" | sed 's/,//' | awk \
robbiew0772b1b2001-10-12 21:03:46 +000036'NR==1 {print "e2fsprogs ", $2}'
37
38reiserfsck 2>&1 | grep reiserfsprogs | awk \
39'NR==1{print "reiserfsprogs ", $NF}'
40
41cardmgr -V 2>&1| grep version | awk \
42'NR==1{print "pcmcia-cs ", $3}'
43
44pppd --version 2>&1| grep version | awk \
45'NR==1{print "PPP ", $3}'
46
47isdnctrl 2>&1 | grep version | awk \
48'NR==1{print "isdn4k-utils ", $NF}'
49
50ls -l `ldd /bin/sh | awk '/libc/{print $3}'` | sed \
51-e 's/\.so$//' | awk -F'[.-]' '{print "Linux C Library " \
52$(NF-2)"."$(NF-1)"."$NF}'
53
robbiewbd4caea2005-07-11 18:11:18 +000054ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \
robbiew0772b1b2001-10-12 21:03:46 +000055'NR==1{print "Dynamic linker (ldd) ", $NF}'
56
57ls -l /usr/lib/lib{g,stdc}++.so 2>/dev/null | awk -F. \
58 '{print "Linux C++ Library " $4"."$5"."$6}'
59
60ps --version 2>&1 | awk 'NR==1{print "Procps ", $NF}'
61
62ifconfig --version 2>&1 | grep tools | awk \
63'NR==1{print "Net-tools ", $NF}'
64
65# Kbd needs 'loadkeys -h',
66loadkeys -h 2>&1 | awk \
67'(NR==1 && ($3 !~ /option/)) {print "Kbd ", $3}'
68
69# while console-tools needs 'loadkeys -V'.
70loadkeys -V 2>&1 | awk \
71'(NR==1 && ($2 ~ /console-tools/)) {print "Console-tools ", $3}'
72
73expr --v 2>&1 | awk 'NR==1{print "Sh-utils ", $NF}'
74
robbiew559e5962001-12-18 16:14:23 +000075if [ -e /proc/modules ]; then
76 X=`cat /proc/modules | sed -e "s/ .*$//"`
77 echo "Modules Loaded "$X
78fi
robbiew75fe22f2002-03-20 15:43:46 +000079
80echo
robbiewfae29502003-04-07 21:19:52 +000081echo 'free reports:'
82free
robbiew75fe22f2002-03-20 15:43:46 +000083
84echo
85echo '/proc/cpuinfo'
86cat /proc/cpuinfo