Module Name: src Committed By: pgoyette Date: Mon Aug 27 21:50:20 UTC 2012
Modified Files: src/etc/powerd/scripts: sensor_indicator Log Message: Handle any reports of state changes for INDICATORs To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/etc/powerd/scripts/sensor_indicator 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_indicator diff -u src/etc/powerd/scripts/sensor_indicator:1.4 src/etc/powerd/scripts/sensor_indicator:1.5 --- src/etc/powerd/scripts/sensor_indicator:1.4 Thu Oct 11 00:30:47 2007 +++ src/etc/powerd/scripts/sensor_indicator Mon Aug 27 21:50:19 2012 @@ -1,6 +1,6 @@ #!/bin/sh - # -# $NetBSD: sensor_indicator,v 1.4 2007/10/11 00:30:47 xtraeme Exp $ +# $NetBSD: sensor_indicator,v 1.5 2012/08/27 21:50:19 pgoyette Exp $ # # Generic script for indicator and integer sensors. # @@ -33,6 +33,10 @@ warning-over) logger -p warning "${0}: ($1) warning limit exceeded [${3}]" >&1 exit 0 ;; +state-changed) + logger -p warning "${0}: ($1) state changed [${3}] : ${4}" >&1 + exit 0 + ;; *) logger -p warning "${0}: unsupported event ${2} on device ${1}" >&1 exit 1