mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
collectd: Don't scan for sensors on ARM.
Calling sensors-detect killed the system.
This commit is contained in:
@@ -20,6 +20,13 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ARM does not support to scan for sensors. In that case,
|
||||||
|
# we create an empty configuration file.
|
||||||
|
machine=$(uname -m)
|
||||||
|
if [ "${machine:0:3}" = "arm" ]; then
|
||||||
|
touch /etc/sysconfig/lm_sensors
|
||||||
|
fi
|
||||||
|
|
||||||
# At first run search for sensors with sensors-detect
|
# At first run search for sensors with sensors-detect
|
||||||
if [ ! -e /etc/sysconfig/lm_sensors ]; then
|
if [ ! -e /etc/sysconfig/lm_sensors ]; then
|
||||||
boot_mesg "Searching for Sensors..."
|
boot_mesg "Searching for Sensors..."
|
||||||
|
|||||||
Reference in New Issue
Block a user