scripts/diagnostic: Add support for collecting USB information

This commit is contained in:
Maximilian Luz 2021-10-10 02:15:12 +02:00
parent 0ea139d365
commit 5ea45b56a8
No known key found for this signature in database
GPG key ID: 70EC0937F6C26F02

View file

@ -12,6 +12,7 @@ all_components=(
"sam"
"kconfig"
"lspci"
"lsusb"
)
@ -227,6 +228,14 @@ if [[ " ${components[*]} " =~ " lspci " ]]; then
sudo lspci -nn -v -t > "${tmpdir}/lspci-tree.txt"
fi
# collect lsusb
if [[ " ${components[*]} " =~ " lsusb " ]]; then
echo " - lsusb"
sudo lsusb -v > "${tmpdir}/lsusb.txt"
sudo lsusb -v -t > "${tmpdir}/lsusb-tree.txt"
fi
# bundle to archive
echo " ==> generating archive..."