From 93dfb6fa123806bea85e4825b6c5a25894d76b51 Mon Sep 17 00:00:00 2001 From: Marius Reiner Date: Tue, 18 May 2004 19:12:43 +0000 Subject: [PATCH] (mariusr) restorefans on TERM and KILL (submitted by Stephen Kitt) git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2549 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/pwm/fancontrol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prog/pwm/fancontrol b/prog/pwm/fancontrol index ba181618..d88f431f 100755 --- a/prog/pwm/fancontrol +++ b/prog/pwm/fancontrol @@ -2,7 +2,7 @@ # # Simple script implementing a temperature dependent fan speed control # -# Version 0.62 +# Version 0.63 # # Usage: fancontrol [CONFIGFILE] # @@ -160,7 +160,7 @@ function restorefans() exit 1 } -trap restorefans SIGHUP SIGINT SIGQUIT +trap restorefans SIGHUP SIGINT SIGQUIT SIGTERM SIGKILL # function doing all the math function calc () {