summaryrefslogtreecommitdiffstats
path: root/urunlevel/my_linux/Trinux/hwinfo
blob: 5e3212623d7e2c6b191cbd513695e2193340f270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

echo "Gathering hardware information, saving to /tmp/hwinfo"

echo "[--- dmesg ---]" > /tmp/hwinfo
dmesg >> /tmp/hwinfo
echo "[--- /proc/devices ---]" >> /tmp/hwinfo
cat /proc/devices >> /tmp/hwinfo
echo "[--- /proc/iomem ---]" >> /tmp/hwinfo
cat /proc/iomem >> /tmp/hwinfo
echo "[--- /proc/ioports ---]" >> /tmp/hwinfo
cat /proc/ioports >> /tmp/hwinfo
echo "[--- /proc/interrupts ---]" >> /tmp/hwinfo
cat /proc/interrupts >> /tmp/hwinfo
echo "[--- /proc/pci ---]" >> /tmp/hwinfo
cat /proc/pci >> /tmp/hwinfo
echo "[--- /proc/meminfo ---]" >> /tmp/hwinfo
cat /proc/meminfo >> /tmp/hwinfo
echo "[--- /proc/partitions ---]" >> /tmp/hwinfo
cat /proc/partitions >> /tmp/hwinfo
echo "[--- /proc/modules ---]" >> /tmp/hwinfo
cat /proc/modules >> /tmp/hwinfo