diff --git a/CHANGES b/CHANGES index d30121c1..f2a80ef0 100644 --- a/CHANGES +++ b/CHANGES @@ -47,6 +47,7 @@ lm_sensors CHANGES file Program i2cdump: Restore bank after bank switching Add new mode W (read word on even register addresses) Program mkpatch: Fix typo breaking f71805f + Program pwmconfig: Use mktemp instead of tempfile Program sensors: No error messages on missing w83792d fan4-7 (Yuan Mu) Add smsc47m192 support Add abituguru support (Hans de Goede) diff --git a/prog/pwm/pwmconfig b/prog/pwm/pwmconfig index 5cf3f046..4a0cfd0a 100755 --- a/prog/pwm/pwmconfig +++ b/prog/pwm/pwmconfig @@ -465,7 +465,7 @@ function TestMinStop { function SaveConfig { echo echo "Saving configuration to $FCCONFIG..." - tmpfile=`tempfile` || { echo "$0: Cannot create temporary file" >&2; exit 1; } + tmpfile=`mktemp -t pwmcfg.XXXXXXXXXX` || { 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