Changeset 5022

Show
Ignore:
Timestamp:
11/18/07 16:51:26 (1 year ago)
Author:
khali
Message:

pwmconfig: Better diagnostics in pwmdisable.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/CHANGES

    r5021 r5022  
    1010  Program decode-dimms.pl: Fix DDR2 SDRAM module speed decoding 
    1111                           Update manufacturer IDs. 
     12  Program pwmconfig: Better diagnostics in pwmdisable 
    1213  Program sensors: Hide spurious errors on missing f71872f voltage inputs 
    1314  Program sensors-detect: Add Texas Instruments TMP401 detection 
  • lm-sensors/trunk/prog/pwm/pwmconfig

    r4903 r5022  
    133133                # It didn't work, try pwmN_enable=1 pwmN=255 
    134134                echo 1 > $ENABLE 2> /dev/null 
     135                if [ "`cat $ENABLE`" -ne 1 ] 
     136                then 
     137                        echo "$ENABLE stuck to `cat $ENABLE`" >&2 
     138                        return 1 
     139                fi 
     140 
    135141                echo $MAX > $1 
    136                 if [ "`cat $ENABLE`" -eq 1 -a "`cat $1`" -ge 190 ] 
     142                if [ "`cat $1`" -ge 190 ] 
    137143                then 
    138144                        # Success 
     
    141147 
    142148                # Nothing worked 
    143                 echo "$ENABLE stuck to `cat $ENABLE`" >&2 
     149                echo "$1 stuck to `cat $1`" >&2 
    144150                return 1 
    145151        else