Changeset 5106

Show
Ignore:
Timestamp:
01/10/08 10:17:47 (11 months ago)
Author:
khali
Message:

Detect improperly formatted FCTEMPS value (#2293).

Files:

Legend:

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

    r5105 r5106  
    1818                          Fix the timestamp decoding 
    1919  Program i2cdump: Fix I2C block mode error code 
     20  Program fancontrol: Detect improperly formatted FCTEMPS value (#2293) 
    2021  Program pwmconfig: Better diagnostics in pwmdisable 
    2122                     Give the fans some time to spin up 
  • lm-sensors/trunk/prog/pwm/fancontrol

    r4592 r5106  
    8383        for fcv in $FCTEMPS 
    8484        do 
     85                if ! echo $fcv | egrep -q '=' 
     86                then 
     87                        echo "Error in configuration file:" 
     88                        echo "FCTEMPS value is improperly formatted" 
     89                        exit 1 
     90                fi 
     91 
    8592                AFCPWM[$fcvcount]=`echo $fcv |cut -d'=' -f1` 
    8693                AFCTEMP[$fcvcount]=`echo $fcv |cut -d'=' -f2`