Changeset 5857

Show
Ignore:
Timestamp:
08/22/10 18:17:57 (18 months ago)
Author:
khali
Message:

Drop legacy calls to cut. procfs had several values per file, but
sysfs doesn't.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r5856 r5857  
    88  pwmconfig: Sample all fan speeds before returning to full speed (#2380) 
    99             Wait for fans to return to full speed only once per PWM 
     10             Drop legacy invocations of cut 
    1011  sensors.conf.default: W83667HG config is similar to W83627EHF/DHG 
    1112  sensord: Fix support of multiple chips (#2377) 
  • lm-sensors/trunk/prog/pwm/pwmconfig

    r5856 r5857  
    281281for i in $FAN 
    282282do 
    283         # this will return the first field if there's only one (sysfs) 
    284         S=`cat $i | cut -d' ' -f2` 
     283        S=`cat $i` 
    285284        if [ "$S" = "0" -o "$S" = "-1" ] 
    286285        then 
     
    374373                        exit 1 
    375374                fi 
    376                 # this will return the first field if there's only one (sysfs) 
    377                 S=`cat $F | cut -d' ' -f2` 
     375                S=`cat $F` 
    378376                # Fan speed should never increase significantly 
    379377                if [ $S -gt $threshold ] 
     
    477475                                fanactive_min="$S+${fanactive_min}" 
    478476                        fi 
    479                         # this will return the first field if there's only one (sysfs) 
    480                         S=`cat $j | cut -d' ' -f2` 
     477                        S=`cat $j` 
    481478                        if [ $S -lt $threshold ] 
    482479                        then 
     
    702699                pwmset $pwms $fanval 
    703700                sleep $PDELAY 
    704                 fanspeed=`cat $faninput | cut -d' ' -f2` 
     701                fanspeed=`cat $faninput` 
    705702                if [ $fanspeed -gt $threshold ] 
    706703                then