Module Name: src
Committed By: pgoyette
Date: Mon Feb 15 22:56:13 UTC 2010
Modified Files:
src/etc/powerd/scripts: sensor_battery
Log Message:
Add cases for new {high,maximum}-capacity events
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/etc/powerd/scripts/sensor_battery
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/powerd/scripts/sensor_battery
diff -u src/etc/powerd/scripts/sensor_battery:1.6 src/etc/powerd/scripts/sensor_battery:1.7
--- src/etc/powerd/scripts/sensor_battery:1.6 Sat Jun 13 15:35:10 2009
+++ src/etc/powerd/scripts/sensor_battery Mon Feb 15 22:56:13 2010
@@ -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.