]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
collectd: Don't scan for sensors on ARM.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 17 Sep 2011 22:05:12 +0000 (00:05 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 17 Sep 2011 22:05:12 +0000 (00:05 +0200)
Calling sensors-detect killed the system.

src/initscripts/init.d/collectd

index 74ff3fdc82e84722bc3d9988b74aefa96edc7dcf..bdb5ca2f0bcebf0dd095717dca65b24a47566627 100644 (file)
@@ -20,6 +20,13 @@ case "$1" in
                        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
                if [ ! -e /etc/sysconfig/lm_sensors ]; then
                        boot_mesg "Searching for Sensors..."