diff options
author | Holger Levsen <holger@layer-acht.org> | 2010-10-21 11:00:49 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2010-10-21 11:00:49 +0000 |
commit | 760180b0f822e2976fd5e732208a518f8295a88e (patch) | |
tree | 668e799f2cf32cb898c66713858af10fadca7d68 /collect.d | |
parent | 36766cb978f99b44c0da2db3e6ee1906f9c30715 (diff) | |
download | sitesummary-760180b0f822e2976fd5e732208a518f8295a88e.tar.gz sitesummary-760180b0f822e2976fd5e732208a518f8295a88e.tar.bz2 sitesummary-760180b0f822e2976fd5e732208a518f8295a88e.tar.xz |
* collect.d/system:
- only run lspci if /proc/bus/pci exists
Diffstat (limited to 'collect.d')
-rw-r--r-- | collect.d/system | 2 |
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 |