scripts/diagnostic: Add support for collecting PCI device information

This commit is contained in:
Maximilian Luz 2021-10-09 15:56:52 +02:00
parent 4051a53f7e
commit a0da469887
No known key found for this signature in database
GPG key ID: 70EC0937F6C26F02

View file

@ -11,6 +11,7 @@ all_components=(
"serial"
"sam"
"kconfig"
"lspci"
)
@ -218,6 +219,14 @@ if [[ " ${components[*]} " =~ " kconfig " ]]; then
done;
fi
# collect lspci
if [[ " ${components[*]} " =~ " lspci " ]]; then
echo " - kernel configuration"
sudo lspci -nn -vvv > "${tmpdir}/lspci.txt"
sudo lspci -nn -v -t > "${tmpdir}/lspci-tree.txt"
fi
# bundle to archive
echo " ==> generating archive..."