From 63228c12b3b614730bee3afde1581f5c0b0085e0 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 14 Jan 2007 15:42:33 +0000 Subject: [PATCH] Strip unneeded whitespace on configuration load. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4296 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/pwm/pwmconfig | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/prog/pwm/pwmconfig b/prog/pwm/pwmconfig index b5d94596..6217d594 100755 --- a/prog/pwm/pwmconfig +++ b/prog/pwm/pwmconfig @@ -469,13 +469,13 @@ AskPath function LoadConfig { echo "Loading configuration from $1 ..." - INTERVAL=`egrep '^INTERVAL=.*$' $1 | sed -e 's/INTERVAL=//g'` - FCTEMPS=`egrep '^FCTEMPS=.*$' $1 | sed -e 's/FCTEMPS=//g'` - FCFANS=`egrep '^FCFANS=.*$' $1 | sed -e 's/FCFANS=//g'` - MINTEMP=`egrep '^MINTEMP=.*$' $1 | sed -e 's/MINTEMP=//g'` - MAXTEMP=`egrep '^MAXTEMP=.*$' $1 | sed -e 's/MAXTEMP=//g'` - MINSTART=`egrep '^MINSTART=.*$' $1 | sed -e 's/MINSTART=//g'` - MINSTOP=`egrep '^MINSTOP=.*$' $1 | sed -e 's/MINSTOP=//g'` + INTERVAL=`egrep '^INTERVAL=.*$' $1 | sed -e 's/INTERVAL= *//g'` + FCTEMPS=`egrep '^FCTEMPS=.*$' $1 | sed -e 's/FCTEMPS= *//g'` + FCFANS=`egrep '^FCFANS=.*$' $1 | sed -e 's/FCFANS= *//g'` + MINTEMP=`egrep '^MINTEMP=.*$' $1 | sed -e 's/MINTEMP= *//g'` + MAXTEMP=`egrep '^MAXTEMP=.*$' $1 | sed -e 's/MAXTEMP= *//g'` + MINSTART=`egrep '^MINSTART=.*$' $1 | sed -e 's/MINSTART= *//g'` + MINSTOP=`egrep '^MINSTOP=.*$' $1 | sed -e 's/MINSTOP= *//g'` # Check for configuration change local item