aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--collect.d/system2
-rw-r--r--debian/changelog4
2 files changed, 4 insertions, 2 deletions
diff --git a/collect.d/system b/collect.d/system
index bb36229..1d8d97d 100644
--- a/collect.d/system
+++ b/collect.d/system
@@ -13,7 +13,7 @@ if type dmidecode >/dev/null 2>&1; then
dmidecode > dmidecode 2> /dev/null
fi
-if type lspci >/dev/null 2>&1; then
+if [ -d /proc/bus/pci ] && type lspci >/dev/null 2>&1; then
lspci > lspci
lspci -n > lspci-n
fi
diff --git a/debian/changelog b/debian/changelog
index d6d9859..2620ae6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,9 @@
sitesummary (0.0.66~unreleased) UNRELEASED; urgency=low
[ Holger Levsen ]
- * collect.d/system: collect /var/log/Xorg.0.log if it exists.
+ * collect.d/system:
+ - collect /var/log/Xorg.0.log if it exists.
+ - only run lspci if /proc/bus/pci exists
-- Holger Levsen <holger@debian.org> Fri, 01 Oct 2010 17:54:16 +0200