Source-Changes-HG archive

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

[src/trunk]: src/etc/powerd/scripts Add cases for new {high, maximum}-capacity...



details:   https://anonhg.NetBSD.org/src/rev/a21c32bc1e8d
branches:  trunk
changeset: 752115:a21c32bc1e8d
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Feb 15 22:56:13 2010 +0000

description:
Add cases for new {high,maximum}-capacity events

diffstat:

 etc/powerd/scripts/sensor_battery |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 2ce51325cb68 -r a21c32bc1e8d etc/powerd/scripts/sensor_battery
--- a/etc/powerd/scripts/sensor_battery Mon Feb 15 22:38:28 2010 +0000
+++ b/etc/powerd/scripts/sensor_battery Mon Feb 15 22:56:13 2010 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: sensor_battery,v 1.6 2009/06/13 15:35:10 pgoyette Exp $
+#      $NetBSD: sensor_battery,v 1.7 2010/02/15 22:56:13 pgoyette Exp $
 #
 # Generic script for battery sensors.
 #
@@ -28,6 +28,16 @@
            "${0}: (${3}) capacity below critical limit [${1}]" >&1
        exit 0
        ;;
+high-capacity)
+       logger -p warning \
+           "${0}: (${3}) capacity above high limit [${1}]" >&1
+       exit 0
+       ;;
+maximum-capacity)
+       logger -p warning \
+           "${0}: (${3}) capacity above maximum limit [${1}]" >&1
+       exit 0
+       ;;
 #
 # This event is _ONLY_ received when all AC Adapters are OFF and all
 # batteries on the system are in CRITICAL or LOW state.



Home | Main Index | Thread Index | Old Index