mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 04:05:53 +02:00
Silence STDERR when calling 'sensors-detect' in collectd initscript
https://lists.ipfire.org/pipermail/development/2022-April/013189.html Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user