Source-Changes-HG archive

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

[src/trunk]: src/etc/powerd/scripts Handle any reports of state changes for I...



details:   https://anonhg.NetBSD.org/src/rev/a94e8dab3bf3
branches:  trunk
changeset: 781223:a94e8dab3bf3
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Aug 27 21:50:19 2012 +0000

description:
Handle any reports of state changes for INDICATORs

diffstat:

 etc/powerd/scripts/sensor_indicator |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 71b84055f702 -r a94e8dab3bf3 etc/powerd/scripts/sensor_indicator
--- a/etc/powerd/scripts/sensor_indicator       Mon Aug 27 21:42:04 2012 +0000
+++ b/etc/powerd/scripts/sensor_indicator       Mon Aug 27 21:50:19 2012 +0000
@@ -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 @@
        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



Home | Main Index | Thread Index | Old Index