summaryrefslogtreecommitdiffstats
path: root/debian/templates/image.bug/include-pci
diff options
context:
space:
mode:
Diffstat (limited to 'debian/templates/image.bug/include-pci')
-rw-r--r--debian/templates/image.bug/include-pci12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/templates/image.bug/include-pci b/debian/templates/image.bug/include-pci
new file mode 100644
index 000000000..8e6528e5a
--- /dev/null
+++ b/debian/templates/image.bug/include-pci
@@ -0,0 +1,12 @@
+add_pci() {
+ echo '** PCI devices:' >&3
+ lspci -nnvv >&3 2>/dev/null || echo 'not available' >&3
+ echo >&3
+}
+
+ask_pci() {
+ # This information shouldn't vary much between kernel versions, so
+ # include it anyway.
+ test $same_system = nop || add_pci
+}
+