From bdebe88c28ff57853f4e0feeca7a6838d540a949 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sun, 9 Nov 2003 02:32:08 +0000 Subject: [PATCH] handle multiple fans controlled by a single PWM git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2048 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + prog/pwm/pwmconfig | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 7035f8ed..254cdf80 100644 --- a/CHANGES +++ b/CHANGES @@ -29,6 +29,7 @@ ask CVS about it: Module i2c-sis630: Sync with 2.6.0-X driver version Module it87: Add pwm and "smart guardian" support Module lm90: Add ADM1032 support + Program pwmconfig: Handle multiple fans controlled by a single pwm Program sensors: Add ADM1032 support Program sensors-detect: Prefer Super I/O drivers; Fix W83627HF and W83791D detection; detect CSB6; diff --git a/prog/pwm/pwmconfig b/prog/pwm/pwmconfig index 9b4b24b3..3b53fa86 100755 --- a/prog/pwm/pwmconfig +++ b/prog/pwm/pwmconfig @@ -228,8 +228,14 @@ do then echo " It appears that fan $j" echo " is controlled by pwm $i" - let pwmactivecount=1 - pwmactive="$i ${pwmactive}" +# +# a PWM can control more than one fan.... +# + if [ $pwmactivecount -eq 0 ] + then + let pwmactivecount=1 + pwmactive="$i ${pwmactive}" + fi sleep $DELAY if [ $? -ne 0 ] then