From 760180b0f822e2976fd5e732208a518f8295a88e Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 21 Oct 2010 11:00:49 +0000 Subject: * collect.d/system: - only run lspci if /proc/bus/pci exists --- collect.d/system | 2 +- debian/changelog | 4 +++- 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 Fri, 01 Oct 2010 17:54:16 +0200 -- cgit v1.2.3