]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #!/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 | # | |
1da177e4 LT |
7 | echo 'If some fields are empty or look unusual you may have an old version.' |
8 | echo 'Compare to the current minimal requirements in Documentation/Changes.' | |
9 | echo ' ' | |
10 | ||
11 | uname -a | |
12 | echo ' ' | |
13 | ||
235024e5 AK |
14 | gcc -dumpversion 2>&1 | |
15 | awk '/[0-9]+([.]?[0-9]+)+/ && !/not found$/{ | |
16 | match($0, /[0-9]+([.]?[0-9]+)+/) | |
17 | printf("GNU C\t\t\t%s\n", | |
18 | substr($0,RSTART,RLENGTH)) | |
19 | }' | |
1da177e4 | 20 | |
1d60b873 AK |
21 | make --version 2>&1 | |
22 | awk '/GNU Make/{ | |
23 | match($0, /[0-9]+([.]?[0-9]+)+/) | |
24 | printf("GNU Make\t\t%s\n", | |
25 | substr($0,RSTART,RLENGTH)) | |
26 | }' | |
1da177e4 | 27 | |
3e2f5cfb AK |
28 | ld -v 2>&1 | |
29 | awk '/[0-9]+([.]?[0-9]+)+/ && !/not found$/{ | |
30 | match($0, /[0-9]+([.]?[0-9]+)+/) | |
31 | printf("Binutils\t\t%s\n", | |
32 | substr($0,RSTART,RLENGTH)) | |
33 | }' | |
1da177e4 | 34 | |
12b2732c AK |
35 | mount --version 2>&1 | |
36 | awk '/[0-9]+([.]?[0-9]+)+/ && !/not found$/{ | |
37 | match($0, /[0-9]+([.]?[0-9]+)+/) | |
38 | $0 = substr($0,RSTART,RLENGTH) | |
39 | printf("Util-linux\t\t%s\nMount\t\t\t%s\n",$0,$0) | |
40 | }' | |
1da177e4 | 41 | |
5bcb2f59 AK |
42 | depmod -V 2>&1 | |
43 | awk '/[0-9]+([.]?[0-9]+)+/ && !/not found$/{ | |
44 | match($0, /[0-9]+([.]?[0-9]+)+/) | |
45 | printf("Module-init-tools\t%s\n", | |
46 | substr($0,RSTART,RLENGTH)) | |
47 | }' | |
1da177e4 | 48 | |
a8782227 AK |
49 | tune2fs 2>&1 | |
50 | awk '/^tune2fs/{ | |
51 | match($0, /[0-9]+([.]?[0-9]+)+/) | |
52 | printf("E2fsprogs\t\t%s\n", | |
53 | substr($0,RSTART,RLENGTH)) | |
54 | }' | |
1da177e4 | 55 | |
0fc8de56 AK |
56 | fsck.jfs -V 2>&1 | |
57 | awk '/version/{ | |
58 | match($0, /[0-9]+([.]?[0-9]+)+/) | |
59 | printf("Jfsutils\t\t%s\n", | |
60 | substr($0,RSTART,RLENGTH)) | |
61 | }' | |
1da177e4 | 62 | |
63e781ad AK |
63 | reiserfsck -V 2>&1 | |
64 | awk '/^reiserfsck/{ | |
65 | match($0, /[0-9]+([.]?[0-9]+)+/) | |
66 | printf("Reiserfsprogs\t\t%s\n", | |
67 | substr($0,RSTART,RLENGTH)) | |
68 | }' | |
1da177e4 | 69 | |
ea88df9b | 70 | fsck.reiser4 -V 2>&1 | grep ^fsck.reiser4 | awk \ |
1da177e4 LT |
71 | 'NR==1{print "reiser4progs ", $2}' |
72 | ||
44422f3c AK |
73 | xfs_db -V 2>&1 | |
74 | awk '/version/{ | |
75 | match($0, /[0-9]+([.]?[0-9]+)+/) | |
76 | printf("Xfsprogs\t\t%s\n", | |
77 | substr($0,RSTART,RLENGTH)) | |
78 | }' | |
1da177e4 | 79 | |
319e799a VK |
80 | pccardctl -V 2>&1| grep pcmciautils | awk '{print "pcmciautils ", $2}' |
81 | ||
1da177e4 LT |
82 | cardmgr -V 2>&1| grep version | awk \ |
83 | 'NR==1{print "pcmcia-cs ", $3}' | |
84 | ||
85 | quota -V 2>&1 | grep version | awk \ | |
86 | 'NR==1{print "quota-tools ", $NF}' | |
87 | ||
88 | pppd --version 2>&1| grep version | awk \ | |
89 | 'NR==1{print "PPP ", $3}' | |
90 | ||
91 | isdnctrl 2>&1 | grep version | awk \ | |
92 | 'NR==1{print "isdn4k-utils ", $NF}' | |
93 | ||
94 | showmount --version 2>&1 | grep nfs-utils | awk \ | |
95 | 'NR==1{print "nfs-utils ", $NF}' | |
96 | ||
9cc3ef30 JJ |
97 | echo -n "Linux C Library " |
98 | sed -n -e '/^.*\/libc-\([^/]*\)\.so$/{s//\1/;p;q}' < /proc/self/maps | |
1da177e4 LT |
99 | |
100 | ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \ | |
101 | 'NR==1{print "Dynamic linker (ldd) ", $NF}' | |
102 | ||
bdefe35d | 103 | ls -l /usr/lib/libg++.so /usr/lib/libstdc++.so 2>/dev/null | awk -F. \ |
1da177e4 LT |
104 | '{print "Linux C++ Library " $4"."$5"."$6}' |
105 | ||
106 | ps --version 2>&1 | grep version | awk \ | |
107 | 'NR==1{print "Procps ", $NF}' | |
108 | ||
109 | ifconfig --version 2>&1 | grep tools | awk \ | |
110 | 'NR==1{print "Net-tools ", $NF}' | |
111 | ||
112 | # Kbd needs 'loadkeys -h', | |
113 | loadkeys -h 2>&1 | awk \ | |
114 | '(NR==1 && ($3 !~ /option/)) {print "Kbd ", $3}' | |
115 | ||
116 | # while console-tools needs 'loadkeys -V'. | |
117 | loadkeys -V 2>&1 | awk \ | |
118 | '(NR==1 && ($2 ~ /console-tools/)) {print "Console-tools ", $3}' | |
119 | ||
319e799a VK |
120 | oprofiled --version 2>&1 | awk \ |
121 | '(NR==1 && ($2 == "oprofile")) {print "oprofile ", $3}' | |
122 | ||
1da177e4 LT |
123 | expr --v 2>&1 | awk 'NR==1{print "Sh-utils ", $NF}' |
124 | ||
16941458 | 125 | udevinfo -V 2>&1 | grep version | awk '{print "udev ", $3}' |
1da177e4 | 126 | |
319e799a VK |
127 | iwconfig --version 2>&1 | awk \ |
128 | '(NR==1 && ($3 == "version")) {print "wireless-tools ",$4}' | |
129 | ||
1da177e4 LT |
130 | if [ -e /proc/modules ]; then |
131 | X=`cat /proc/modules | sed -e "s/ .*$//"` | |
132 | echo "Modules Loaded "$X | |
133 | fi |