]> git.pld-linux.org Git - packages/lm_sensors.git/blame - lm_sensors-CAN-2005-2672.patch
- fancontrol subpackage
[packages/lm_sensors.git] / lm_sensors-CAN-2005-2672.patch
CommitLineData
77d17957
JB
1--- lm_sensors-2.9.2/prog/pwm/pwmconfig.orig 2005-09-06 21:38:10.000000000 +0200
2+++ lm_sensors-2.9.2/prog/pwm/pwmconfig 2005-10-07 16:34:43.000000000 +0200
3@@ -465,7 +465,7 @@
9709a90a
AG
4 function SaveConfig {
5 echo
6 echo "Saving configuration to $FCCONFIG..."
77d17957
JB
7- tmpfile=`tempfile` || { echo "$0: Cannot create temporary file" >&2; exit 1; }
8+ tmpfile=`mktemp /tmp/pwmconfig.XXXXXX` || { echo "$0: Cannot create temporary file" >&2; exit 1; }
9 trap " [ -f \"$tmpfile\" ] && /bin/rm -f -- \"$tmpfile\"" 0 1 2 3 13 15
10 egrep -v '(INTERVAL|FCTEMPS|FCFANS|MAXTEMP|MINTEMP|MINSTART|MINSTOP)' $FCCONFIG >$tmpfile
11 echo -e "INTERVAL=$INTERVAL\nFCTEMPS=$FCTEMPS\nFCFANS=$FCFANS\nMINTEMP=$MINTEMP\nMAXTEMP=$MAXTEMP\nMINSTART=$MINSTART\nMINSTOP=$MINSTOP" >>$tmpfile
This page took 0.051673 seconds and 4 git commands to generate.