aboutsummaryrefslogtreecommitdiffstats
path: root/collect.d
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2006-08-25 20:48:58 +0000
committerPetter Reinholdtsen <pere@hungry.com>2006-08-25 20:48:58 +0000
commit439020ef8b72a3a941342652d1aac45dae31c6d9 (patch)
treeb8d2e8d335f9183ded5ba1bf888c5db70827b4d1 /collect.d
parent080b37d0ed5d04702452743bbeb7ae38a7f3d415 (diff)
downloadsitesummary-439020ef8b72a3a941342652d1aac45dae31c6d9.tar.gz
sitesummary-439020ef8b72a3a941342652d1aac45dae31c6d9.tar.bz2
sitesummary-439020ef8b72a3a941342652d1aac45dae31c6d9.tar.xz
Get the collector working.
Diffstat (limited to 'collect.d')
-rw-r--r--collect.d/system6
1 files changed, 4 insertions, 2 deletions
diff --git a/collect.d/system b/collect.d/system
index 8ccfc58..2843731 100644
--- a/collect.d/system
+++ b/collect.d/system
@@ -1,14 +1,16 @@
#!/bin/sh
+PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
+
set -e
mkdir system && cd system
-if type dmidecode 2>/dev/null; then
+if type dmidecode >/dev/null; then
dmidecode > dmidecode
fi
-if type lspci 2>/dev/null; then
+if type lspci >/dev/null; then
lspci > lspci
lspci -n > lspci-n
fi