core130: Do not search for sensors on AWS

This causes some i2c drivers to load and tons of error messages
being created in syslog. So we skip searching for any sensors
that do not exist.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2019-04-04 09:05:25 +01:00
parent ab79dc43bf
commit aab33d4845
2 changed files with 6 additions and 0 deletions

View File

@@ -35,6 +35,11 @@ case "$1" in
touch /etc/sysconfig/lm_sensors
fi
# Do not search for sensors when running on AWS
if [ -e "/var/run/aws-instance-id" ]; then
touch /etc/sysconfig/lm_sensors
fi
# At first run search for sensors with sensors-detect
if [ ! -e /etc/sysconfig/lm_sensors ]; then
boot_mesg "Searching for Sensors..."