#!/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

