summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Hargrave <jordan@cvs.openbsd.org>2005-10-19 22:07:00 +0000
committerJordan Hargrave <jordan@cvs.openbsd.org>2005-10-19 22:07:00 +0000
commit6ad11220781b755eef5cff3e65a812ea64983bb6 (patch)
tree3d06da134487db35293529a016ed3692b181b129
parenta8d6988ccf3a13482fdf1554583df4214ca7839f (diff)
Added status for chassis intrusion (critical if open)
ok marco@
-rw-r--r--sys/dev/ipmi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c
index 836dad7e03b..e4b5a7d3f84 100644
--- a/sys/dev/ipmi.c
+++ b/sys/dev/ipmi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipmi.c,v 1.10 2005/10/19 22:01:08 jordan Exp $ */
+/* $OpenBSD: ipmi.c,v 1.11 2005/10/19 22:06:59 jordan Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave
@@ -1300,6 +1300,8 @@ ipmi_sensor_status(struct ipmi_softc *sc, struct ipmi_sensor *psensor,
case 0x6F05: /* chassis intrusion */
psensor->i_sensor.value = (reading[2] & 1) ? 1 : 0;
+ if (reading[2] & 0x1)
+ return (SENSOR_S_CRIT);
break;
case 0x6F08: /* power supply */