aboutsummaryrefslogtreecommitdiffstats
path: root/collect.d
diff options
context:
space:
mode:
authorRonny Aasen <ronny@aasen.cx>2010-11-03 10:50:49 +0000
committerRonny Aasen <ronny@aasen.cx>2010-11-03 10:50:49 +0000
commit252576f00027aa8c4a7aa0b553c3fdf4d03e91a1 (patch)
tree4e8190a0f5be73acf98d03694f508d24be001d3e /collect.d
parentefdaacae4035df6c9d1b5cb344e93768503d5ee3 (diff)
downloadsitesummary-252576f00027aa8c4a7aa0b553c3fdf4d03e91a1.tar.gz
sitesummary-252576f00027aa8c4a7aa0b553c3fdf4d03e91a1.tar.bz2
sitesummary-252576f00027aa8c4a7aa0b553c3fdf4d03e91a1.tar.xz
* fix lsscsi error on machines without /sys mounted.
copied method from holgers lspci fix
Diffstat (limited to 'collect.d')
-rw-r--r--collect.d/system2
1 files changed, 1 insertions, 1 deletions
diff --git a/collect.d/system b/collect.d/system
index 1d8d97d..0401203 100644
--- a/collect.d/system
+++ b/collect.d/system
@@ -22,7 +22,7 @@ if type lsusb >/dev/null 2>&1; then
lsusb > lsusb
fi
-if type lsscsi >/dev/null 2>&1; then
+if [ -d /proc/bus/scsi ] && type lsscsi >/dev/null 2>&1; then
lsscsi > lsscsi
fi