scripts/diagnostic: Add support for collecting USB information
This commit is contained in:
parent
0ea139d365
commit
5ea45b56a8
|
@ -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..."
|
||||
|
|
Loading…
Reference in a new issue