Changeset 5767

Show
Ignore:
Timestamp:
09/13/09 13:19:57 (5 years ago)
Author:
khali
Message:

Clean up the code writing the configuration file.

Files:
1 modified

Legend:

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

    r5749 r5767  
    683683        trap " [ -f \"$tmpfile\" ] && /bin/rm -f -- \"$tmpfile\"" 0 1 2 3 13 15 
    684684        echo "# Configuration file generated by pwmconfig, changes will be lost" >$tmpfile 
    685         echo -e "INTERVAL=$INTERVAL\nFCTEMPS=$FCTEMPS\nFCFANS=$FCFANS\nMINTEMP=$MINTEMP\nMAXTEMP=$MAXTEMP\nMINSTART=$MINSTART\nMINSTOP=$MINSTOP" >>$tmpfile 
     685        echo "INTERVAL=$INTERVAL" >>$tmpfile 
     686        echo "FCTEMPS=$FCTEMPS" >>$tmpfile 
     687        echo "FCFANS=$FCFANS" >>$tmpfile 
     688        echo "MINTEMP=$MINTEMP" >>$tmpfile 
     689        echo "MAXTEMP=$MAXTEMP" >>$tmpfile 
     690        echo "MINSTART=$MINSTART" >>$tmpfile 
     691        echo "MINSTOP=$MINSTOP" >>$tmpfile 
    686692        [ -n "$MINPWM" ] && echo "MINPWM=$MINPWM" >>$tmpfile 
    687693        [ -n "$MAXPWM" ] && echo "MAXPWM=$MAXPWM" >>$tmpfile