Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/powerd/scripts Gracefully shutdown upon reaching critica...
details: https://anonhg.NetBSD.org/src/rev/cf55de09dcc4
branches: trunk
changeset: 778721:cf55de09dcc4
user: jruoho <jruoho%NetBSD.org@localhost>
date: Tue Apr 10 13:58:52 2012 +0000
description:
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 e0c5bd501048 -r cf55de09dcc4 etc/powerd/scripts/sensor_temperature
--- a/etc/powerd/scripts/sensor_temperature Tue Apr 10 13:48:24 2012 +0000
+++ b/etc/powerd/scripts/sensor_temperature Tue Apr 10 13:58:52 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.4 2012/04/10 13:58:52 jruoho 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