Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/etc/powerd/scripts Pull up following revision(s) (request...



details:   https://anonhg.NetBSD.org/src/rev/22eacf4d6644
branches:  netbsd-6
changeset: 774003:22eacf4d6644
user:      riz <riz%NetBSD.org@localhost>
date:      Thu Apr 12 17:10:40 2012 +0000

description:
Pull up following revision(s) (requested by jruoho in ticket #177):
        etc/powerd/scripts/sensor_temperature: revision 1.4
Gracefully shutdown upon reaching critical temperature levels. Prevents few
laptops (ThinkPad T61 and x61s, among others) from hitting the in-CPU reset.

diffstat:

 etc/powerd/scripts/sensor_temperature |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r b6872713432b -r 22eacf4d6644 etc/powerd/scripts/sensor_temperature
--- a/etc/powerd/scripts/sensor_temperature     Thu Apr 12 17:09:01 2012 +0000
+++ b/etc/powerd/scripts/sensor_temperature     Thu Apr 12 17:10:40 2012 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: sensor_temperature,v 1.3 2007/10/11 00:30:48 xtraeme Exp $
+#      $NetBSD: sensor_temperature,v 1.3.32.1 2012/04/12 17:10:40 riz Exp $
 #
 # Generic script for temperature sensors.
 #
@@ -15,6 +15,7 @@
        ;;
 critical)
        logger -p warning "${0}: ($1) critical state entered [${3}]" >&1
+       /sbin/shutdown -p now "${0}: CRITICAL TEMPERATURE! SHUTTING DOWN."
        exit 0
        ;;
 critical-under)
@@ -23,6 +24,7 @@
        ;;
 critical-over)
        logger -p warning "${0}: ($1) critical limit exceeded [${3}]" >&1
+       /sbin/shutdown -p now "${0}: CRITICAL TEMPERATURE! SHUTTING DOWN."
        exit 0
        ;;
 warning-under)



Home | Main Index | Thread Index | Old Index