From c5b091fb1085ebdf2000fb0c1006afc1e1a11335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20M=C3=BCller?= Date: Wed, 13 Apr 2022 09:22:58 +0000 Subject: [PATCH] Silence STDERR when calling 'sensors-detect' in collectd initscript MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://lists.ipfire.org/pipermail/development/2022-April/013189.html Signed-off-by: Peter Müller --- src/initscripts/system/collectd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/initscripts/system/collectd b/src/initscripts/system/collectd index 6c58ac3a6..bb8a2f54f 100644 --- a/src/initscripts/system/collectd +++ b/src/initscripts/system/collectd @@ -27,7 +27,7 @@ eval $(/usr/local/bin/readhash /var/ipfire/main/settings) scan_for_sensors() { touch /var/lock/sensors_search # pre scan and try to load modules - "yes" | /usr/sbin/sensors-detect > /dev/null + "yes" | /usr/sbin/sensors-detect > /dev/null 2>&1 if [ -e /etc/sysconfig/lm_sensors ]; then # Module load @@ -38,7 +38,7 @@ scan_for_sensors() { fi # Final scan - "yes" | /usr/sbin/sensors-detect > /dev/null + "yes" | /usr/sbin/sensors-detect > /dev/null 2>&1 if [ ! -e /etc/sysconfig/lm_sensors ]; then echo "#No Sensors detected " > /etc/sysconfig/lm_sensors