Changeset 5061 for lm-sensors/branches/lm-sensors-3.0.0/prog/pwm/pwmconfig
- Timestamp:
- 12/04/07 10:27:49 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/prog/pwm/pwmconfig
r5025 r5061 1 1 #!/bin/bash 2 2 # 3 # pwmconfig v0. 83 # pwmconfig v0.9 4 4 # Tests the pwm outputs of sensors and configures fancontrol 5 5 # … … 124 124 125 125 # Try pwmN_enable=0 126 echo 0 > $ENABLE 2> /dev/null126 echo 0 2>/dev/null > $ENABLE 127 127 if [ "`cat $ENABLE`" -eq 0 ] 128 128 then … … 132 132 133 133 # It didn't work, try pwmN_enable=1 pwmN=255 134 echo 1 > $ENABLE 2> /dev/null134 echo 1 2>/dev/null > $ENABLE 135 135 if [ "`cat $ENABLE`" -ne 1 ] 136 136 then … … 162 162 if [ -w $ENABLE ] 163 163 then 164 echo 1 > $ENABLE 2> /dev/null164 echo 1 2>/dev/null > $ENABLE 165 165 if [ $? -ne 0 ] 166 166 then … … 196 196 if [ $? -ne 0 ] 197 197 then 198 echo "Failed to set $i to full speed" >&2 199 echo "Something's wrong, check your fans!" >&2 200 exit 1 198 echo "Manual control mode not supported, skipping $i." 199 elif [ "$GOODPWM" = "" ] 200 then 201 GOODPWM=$i 202 else 203 GOODPWM="$GOODPWM $i" 201 204 fi 202 205 else … … 204 207 fi 205 208 done 209 210 if [ "$GOODPWM" = "" ] 211 then 212 echo 'There are no usable PWM outputs.' 213 exit 1 214 fi 206 215 207 216 echo … … 344 353 } 345 354 346 for i in $ PWM355 for i in $GOODPWM 347 356 do 348 357 echo Testing pwm control $i ...
