Changeset 5855 for lm-sensors/trunk/prog/pwm/pwmconfig
- Timestamp:
- 08/22/10 18:07:22 (3 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/prog/pwm/pwmconfig (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/prog/pwm/pwmconfig
r5770 r5855 438 438 exit 1 439 439 fi 440 441 # Sample all current fan speeds at once, so that we can quickly 442 # disable PWM and return all fans to full speed 443 CURRENT_SPEEDS="`cat $GOODFAN`" 444 pwmdisable $i 445 440 446 let pwmactivecount=0 441 447 let count=1 … … 443 449 do 444 450 OS=`echo $SPEEDS | cut -d' ' -f$count` 445 # this will return the first field if there's only one (sysfs) 446 S=`cat $j | cut -d' ' -f2` 451 S=`echo $CURRENT_SPEEDS | cut -d' ' -f$count` 447 452 echo " $j ... speed was $OS now $S" 448 pwmdisable $i449 453 let threshold=2*$OS/3 450 454 if [ $S -lt $threshold ]
