Changeset 5667

Show
Ignore:
Timestamp:
02/28/09 20:38:22 (4 years ago)
Author:
khali
Message:

Exit if configuration file can't be read.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r5660 r5667  
    2525  fancontrol: Don't round temperature values 
    2626              Drop support for kernels 2.4 and earlier 
     27              Exit if configuration file can't be read 
    2728  maxilife scripts: Delete (driver never ported to Linux 2.6) 
    2829  sensord: Accept negative temperatures in RRD database 
  • lm-sensors/trunk/prog/pwm/fancontrol

    r5630 r5667  
    5555function LoadConfig { 
    5656        echo "Loading configuration from $1 ..." 
     57        if [ ! -r "$1" ] 
     58        then 
     59                echo "Error: Can't read configuration file" 
     60                exit 1 
     61        fi 
     62 
    5763        # grep configuration from file 
    5864        INTERVAL=`egrep '^INTERVAL=.*$' $1 | sed -e 's/INTERVAL=//g'`