SOURCES: lm_sensors-CAN-2005-2672.patch - updated for 2.9.2 (use m...

qboosh qboosh at pld-linux.org
Fri Oct 7 16:47:47 CEST 2005


Author: qboosh                       Date: Fri Oct  7 14:47:47 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- updated for 2.9.2 (use mktemp instead of non-existing tempfile)

---- Files affected:
SOURCES:
   lm_sensors-CAN-2005-2672.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/lm_sensors-CAN-2005-2672.patch
diff -u SOURCES/lm_sensors-CAN-2005-2672.patch:1.1 SOURCES/lm_sensors-CAN-2005-2672.patch:1.2
--- SOURCES/lm_sensors-CAN-2005-2672.patch:1.1	Wed Aug 31 09:46:02 2005
+++ SOURCES/lm_sensors-CAN-2005-2672.patch	Fri Oct  7 16:47:42 2005
@@ -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
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/lm_sensors-CAN-2005-2672.patch?r1=1.1&r2=1.2&f=u




More information about the pld-cvs-commit mailing list