From a0da469887be89b9ebb33a3be1e36f9bd752abd8 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Sat, 9 Oct 2021 15:56:52 +0200 Subject: [PATCH] scripts/diagnostic: Add support for collecting PCI device information --- scripts/diagnostics.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/diagnostics.sh b/scripts/diagnostics.sh index 24be399bb..33b307149 100755 --- a/scripts/diagnostics.sh +++ b/scripts/diagnostics.sh @@ -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..."