Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 103568
Collapse All | Expand All

(-)file_not_specified_in_diff (-4 / +6 lines)
Line  Link Here
0
-- lm-sensors-2.8.8.orig/prog/pwm/pwmconfig
0
++ lm-sensors-2.8.8/prog/pwm/pwmconfig
Lines 464-472 Link Here
464
function SaveConfig {
464
function SaveConfig {
465
	echo
465
	echo
466
	echo "Saving configuration to $FCCONFIG..."
466
	echo "Saving configuration to $FCCONFIG..."
467
	egrep -v '(INTERVAL|FCTEMPS|FCFANS|MAXTEMP|MINTEMP|MINSTART|MINSTOP)' /etc/fancontrol >/tmp/fancontrol
467
	tmpfile=`tempfile` || { echo "$0: Cannot create temporary file" >&2; exit 1;  }
468
	echo -e "INTERVAL=$INTERVAL\nFCTEMPS=$FCTEMPS\nFCFANS=$FCFANS\nMINTEMP=$MINTEMP\nMAXTEMP=$MAXTEMP\nMINSTART=$MINSTART\nMINSTOP=$MINSTOP" >>/tmp/fancontrol
468
	trap " [ -f \"$tmpfile\" ] && /bin/rm -f -- \"$tmpfile\"" 0 1 2 3 13 15
469
	mv /tmp/fancontrol /etc/fancontrol
469
	egrep -v '(INTERVAL|FCTEMPS|FCFANS|MAXTEMP|MINTEMP|MINSTART|MINSTOP)' /etc/fancontrol > $tmpfile
470
	echo -e "INTERVAL=$INTERVAL\nFCTEMPS=$FCTEMPS\nFCFANS=$FCFANS\nMINTEMP=$MINTEMP\nMAXTEMP=$MAXTEMP\nMINSTART=$MINSTART\nMINSTOP=$MINSTOP" >> $tmpfile
471
	mv $tmpfile /etc/fancontrol
470
	#check if file was written correctly
472
	#check if file was written correctly
471
	echo 'Configuration saved'
473
	echo 'Configuration saved'
472
}
474
}

Return to bug 103568