Changeset 4296

Show
Ignore:
Timestamp:
01/14/07 16:42:33 (2 years ago)
Author:
khali
Message:

Strip unneeded whitespace on configuration load.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/prog/pwm/pwmconfig

    r4288 r4296  
    470470function LoadConfig { 
    471471        echo "Loading configuration from $1 ..." 
    472         INTERVAL=`egrep '^INTERVAL=.*$' $1 | sed -e 's/INTERVAL=//g'` 
    473         FCTEMPS=`egrep '^FCTEMPS=.*$' $1 | sed -e 's/FCTEMPS=//g'` 
    474         FCFANS=`egrep '^FCFANS=.*$' $1 | sed -e 's/FCFANS=//g'` 
    475         MINTEMP=`egrep '^MINTEMP=.*$' $1 | sed -e 's/MINTEMP=//g'` 
    476         MAXTEMP=`egrep '^MAXTEMP=.*$' $1 | sed -e 's/MAXTEMP=//g'` 
    477         MINSTART=`egrep '^MINSTART=.*$' $1 | sed -e 's/MINSTART=//g'` 
    478         MINSTOP=`egrep '^MINSTOP=.*$' $1 | sed -e 's/MINSTOP=//g'` 
     472        INTERVAL=`egrep '^INTERVAL=.*$' $1 | sed -e 's/INTERVAL= *//g'` 
     473        FCTEMPS=`egrep '^FCTEMPS=.*$' $1 | sed -e 's/FCTEMPS= *//g'` 
     474        FCFANS=`egrep '^FCFANS=.*$' $1 | sed -e 's/FCFANS= *//g'` 
     475        MINTEMP=`egrep '^MINTEMP=.*$' $1 | sed -e 's/MINTEMP= *//g'` 
     476        MAXTEMP=`egrep '^MAXTEMP=.*$' $1 | sed -e 's/MAXTEMP= *//g'` 
     477        MINSTART=`egrep '^MINSTART=.*$' $1 | sed -e 's/MINSTART= *//g'` 
     478        MINSTOP=`egrep '^MINSTOP=.*$' $1 | sed -e 's/MINSTOP= *//g'` 
    479479 
    480480        # Check for configuration change