/usr/lib/debian-edu-config/testsuite/hardware is in debian-edu-config 1.702.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | #!/bin/sh -e
#
# Report the detected HW
if [ -x /sbin/discover ] ; then
if /sbin/discover --version | grep " 1\." >/dev/null 2>&1; then
/sbin/discover -f "info: $0: discover: %m;%S;%D;%V;%M;%d\n" all || true
else
echo "info: discover v2 installed"
fi
else
echo "error: $0: Unable to find /sbin/discover"
fi
LSPCI=/sbin/lspci
if [ -x /usr/bin/lspci ] ; then
LSPCI=/usr/bin/lspci # This is the location in Sarge [2005-01-30]
fi
if [ -x $LSPCI ] ; then
(
$LSPCI -v -t || true
$LSPCI -n || true
$LSPCI -v || true
echo "For use with 'lspci -F':"
$LSPCI -x || true
)| sed "s%^%info: $0: lspci: %"
else
echo "error: $0: Unable to find $LSPCI"
fi
if [ -x /sbin/lsmod ] ; then
/sbin/lsmod | sed "s%^%info: $0: lsmod: %"
else
echo "error: $0: Unable to find /sbin/lsmod"
fi
for file in cpuinfo ioports iomem interrupts meminfo ; do
if [ -e /proc/$file ] ; then
cat /proc/$file | sed "s%^%info: $0: $file: %"
else
echo "error: $0: Unable to find /proc/$file"
fi
done
disks=`cat /proc/partitions|egrep 'ide|scsi'|awk '{print $4}'|grep '/disc'|sed 's%^%/dev/%'`
for disk in $disks ; do
/sbin/hdparm -i $disk 2>&1 | sed "s%^%info: $0: hdparm: %"
done
if [ -x /usr/sbin/dmidecode ] ; then
/usr/sbin/dmidecode | sed "s%^%info: $0: dmidecode: %"
else
echo "error: $0: Unable to find /usr/sbin/dmidecode"
fi
if [ -x /usr/sbin/ddcprobe ] ; then
ddcprobe | sed "s%^%info: $0: ddcprobe: %"
elif [ -x /usr/bin/ddccontrol ] ; then
ddccontrol -c -p | sed "s%^%info: $0: ddccontrol: %"
else
echo "error: $0: Unable to find /usr/sbin/ddcprobe and /usr/bin/ddccontrol"
fi
|