mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-29 13:28:01 +00:00
(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
This commit is contained in:
parent
0faf31634a
commit
93dfb6fa12
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Simple script implementing a temperature dependent fan speed control
|
# Simple script implementing a temperature dependent fan speed control
|
||||||
#
|
#
|
||||||
# Version 0.62
|
# Version 0.63
|
||||||
#
|
#
|
||||||
# Usage: fancontrol [CONFIGFILE]
|
# Usage: fancontrol [CONFIGFILE]
|
||||||
#
|
#
|
||||||
@ -160,7 +160,7 @@ function restorefans()
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
trap restorefans SIGHUP SIGINT SIGQUIT
|
trap restorefans SIGHUP SIGINT SIGQUIT SIGTERM SIGKILL
|
||||||
|
|
||||||
# function doing all the math
|
# function doing all the math
|
||||||
function calc () {
|
function calc () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user