libnsa.sh 317 Bytes
Newer Older
Lars Beckers's avatar
Lars Beckers committed
1 2 3 4 5 6 7 8 9
#!/bin/bash
DUMPDIR="$(mktemp -d --tmpdir /cdrom/lipstats/ .stats.XXXXXXXXXXXX)"

mkdir -p "$DUMPDIR"

uname -a > "$DUMPDIR/uname" 2> "$DUMPDIR/uname.err"
dmidecode > "$DUMPDIR/dmidecode" 2> "$DUMPDIR/dmidecode.err"
lspci -k > "$DUMPDIR/lspci" 2> "$DUMPDIR/lspci.err"
lsusb > "$DUMPDIR/lsusb" 2> "$DUMPDIR/lsusb.err"