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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'collect.d/system') 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 -- cgit v1.2.3