From af447db31acad7ad8e43afa717e0646daf66721b Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 5 Nov 2014 07:28:35 +0000 Subject: [PATCH] fancontrol: Fix shell error when FCFANS is not set The bug was introduced when I added support for multiple fans controlled by the same PWM output, in r6000. lm-sensors versions affected: 3.3.2 to 3.3.5. This fixes SUSE bug #903520: https://bugzilla.suse.com/show_bug.cgi?id=903520 --- CHANGES | 1 + prog/pwm/fancontrol | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index a75dfa79..cc0766a3 100644 --- a/CHANGES +++ b/CHANGES @@ -8,6 +8,7 @@ SVN HEAD Add support for temperature min and critical min hysteresis sensors: Add support for temperature min and critical min hysteresis fancontrol: Deal with moving hwmon attributes + Fix shell error when FCFANS is not set sensors-detect: Add detection of ADC128D818 Add detection of AMD family 16h Kabini and Mullins Add detection of ITE IT8620E and IT8623E diff --git a/prog/pwm/fancontrol b/prog/pwm/fancontrol index 86180ec8..85aa8bc9 100755 --- a/prog/pwm/fancontrol +++ b/prog/pwm/fancontrol @@ -3,7 +3,7 @@ # Simple script implementing a temperature dependent fan speed control # Supported Linux kernel versions: 2.6.5 and later # -# Version 0.70 +# Version 0.71 # # Usage: fancontrol [CONFIGFILE] # @@ -513,7 +513,7 @@ function UpdateFanSpeeds fi done else - fanval=1 # set it to a non zero value, so the rest of the script still works + min_fanval=1 # set it to a non zero value, so the rest of the script still works fi # debug info