]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
core130: Do not search for sensors on AWS
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 4 Apr 2019 08:05:25 +0000 (09:05 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 4 Apr 2019 08:05:25 +0000 (09:05 +0100)
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>
config/rootfiles/core/130/filelists/files
src/initscripts/system/collectd

index 248a2c7533a69181f0031fbb7462377c5c4c2133..00d3cdde6e09aa3d1ed036c78a8d7838bbff7914 100644 (file)
@@ -4,6 +4,7 @@ srv/web/ipfire/cgi-bin/credits.cgi
 var/ipfire/langs
 etc/collectd.conf
 etc/logrotate.conf
+etc/rc.d/init.d/collectd
 etc/rc.d/init.d/firewall
 etc/rc.d/init.d/networking/red.up/23-suricata
 etc/rc.d/init.d/suricata
index cdb8693ae5befed228d86b9ce21a4a275833292e..5233525f0460006a6a5765d8fad554dc20ed34db 100644 (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..."