]> git.pld-linux.org Git - packages/lm_sensors.git/commitdiff
- updated for 2.9.2 (use mktemp instead of non-existing tempfile)
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 7 Oct 2005 14:47:42 +0000 (14:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lm_sensors-CAN-2005-2672.patch -> 1.2

lm_sensors-CAN-2005-2672.patch

index 1518c679524d6760c9e78c1de505c44e738c28f9..2a02dfa2f16d748ad4655092f6b2a4decf19e567 100644 (file)
@@ -1,18 +1,11 @@
-diff -burN lm_sensors-2.9.1.orig/prog/pwm/pwmconfig lm_sensors-2.9.1/prog/pwm/pwmconfig
---- lm_sensors-2.9.1.orig/prog/pwm/pwmconfig   2005-08-31 09:38:08.272485088 +0200
-+++ lm_sensors-2.9.1/prog/pwm/pwmconfig        2005-08-31 09:40:43.701856232 +0200
-@@ -465,9 +465,11 @@
+--- lm_sensors-2.9.2/prog/pwm/pwmconfig.orig   2005-09-06 21:38:10.000000000 +0200
++++ lm_sensors-2.9.2/prog/pwm/pwmconfig        2005-10-07 16:34:43.000000000 +0200
+@@ -465,7 +465,7 @@
  function SaveConfig {
        echo
        echo "Saving configuration to $FCCONFIG..."
--      egrep -v '(INTERVAL|FCTEMPS|FCFANS|MAXTEMP|MINTEMP|MINSTART|MINSTOP)' $FCCONFIG >/tmp/fancontrol
--      echo -e "INTERVAL=$INTERVAL\nFCTEMPS=$FCTEMPS\nFCFANS=$FCFANS\nMINTEMP=$MINTEMP\nMAXTEMP=$MAXTEMP\nMINSTART=$MINSTART\nMINSTOP=$MINSTOP" >>/tmp/fancontrol
--      mv /tmp/fancontrol $FCCONFIG
-+      tmpfile=`mktemp pwmconfig.XXXXXX` || { echo "$0: Cannot create temporary file" >&2; exit 1;  }
-+      trap " [ -f \"$tmpfile\" ] && /bin/rm -f -- \"$tmpfile\"" 0 1 2 3 13 15
-+      egrep -v '(INTERVAL|FCTEMPS|FCFANS|MAXTEMP|MINTEMP|MINSTART|MINSTOP)' $FCCONFIG >$tmpfile
-+      echo -e "INTERVAL=$INTERVAL\nFCTEMPS=$FCTEMPS\nFCFANS=$FCFANS\nMINTEMP=$MINTEMP\nMAXTEMP=$MAXTEMP\nMINSTART=$MINSTART\nMINSTOP=$MINSTOP" >>$tmpfile
-+      mv $tmpfile $FCCONFIG
-       #check if file was written correctly
-       echo 'Configuration saved'
- }
+-      tmpfile=`tempfile` || { echo "$0: Cannot create temporary file" >&2; exit 1;  }
++      tmpfile=`mktemp /tmp/pwmconfig.XXXXXX` || { echo "$0: Cannot create temporary file" >&2; exit 1;  }
+       trap " [ -f \"$tmpfile\" ] && /bin/rm -f -- \"$tmpfile\"" 0 1 2 3 13 15
+       egrep -v '(INTERVAL|FCTEMPS|FCFANS|MAXTEMP|MINTEMP|MINSTART|MINSTOP)' $FCCONFIG >$tmpfile
+       echo -e "INTERVAL=$INTERVAL\nFCTEMPS=$FCTEMPS\nFCFANS=$FCFANS\nMINTEMP=$MINTEMP\nMAXTEMP=$MAXTEMP\nMINSTART=$MINSTART\nMINSTOP=$MINSTOP" >>$tmpfile
This page took 0.078547 seconds and 4 git commands to generate.