aboutsummaryrefslogtreecommitdiffstats
path: root/collect.d
diff options
context:
space:
mode:
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