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

Detect improperly formatted FCTEMPS value (#2293).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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`