diff options
| author | Anton Bobov <abobov@gmail.com> | 2018-11-01 22:16:21 +0500 |
|---|---|---|
| committer | Anton Bobov <abobov@gmail.com> | 2018-11-01 22:16:21 +0500 |
| commit | 2bf34f4efd5643b847170443ca9aa03dafed976c (patch) | |
| tree | ed4f121a91f6a5f3214e4cea25c47475abd9e86d /hw-report | |
| parent | 88fcd4ab2ea43395da996ccfe067b3b5651eb458 (diff) | |
Update bin.
Diffstat (limited to 'hw-report')
| -rwxr-xr-x | hw-report | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/hw-report b/hw-report new file mode 100755 index 0000000..790f0d9 --- /dev/null +++ b/hw-report @@ -0,0 +1,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 |
