blob: 790f0d9ca83022f7f0c3d03afc9833f3cec6da2e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
set -e
if hash lshw 2>/dev/null ; then
report="lshw-$(hostname)-$(date +%F)"
report_txt="$report.txt"
report_html="$report.html"
sudo lshw > "$report_txt" 2>/dev/null
sudo lshw -html > "$report_html" 2>/dev/null
else
echo No lshw command.
exit 1
fi
|