aboutsummaryrefslogtreecommitdiffstats
path: root/collect.d/system
diff options
context:
space:
mode:
Diffstat (limited to 'collect.d/system')
-rw-r--r--collect.d/system2
1 files changed, 1 insertions, 1 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