Do not shutdown the system when a critical event is received, this
doesn't work when there are two or more batteries in acpibat(4).
This commit is contained in:
parent
2577f77bbc
commit
e8d5f35d1f
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: sensor_battery,v 1.1 2007/07/01 07:55:53 xtraeme Exp $
|
||||
# $NetBSD: sensor_battery,v 1.2 2007/07/17 13:56:25 xtraeme Exp $
|
||||
#
|
||||
# Generic script for battery sensors.
|
||||
#
|
||||
@ -14,8 +14,7 @@ normal)
|
||||
exit 0
|
||||
;;
|
||||
critical)
|
||||
/sbin/shutdown -p now \
|
||||
"${0}: ${3}: CRITICAL: capacity dropped below low limit! (${1}) shutting down." >&1
|
||||
logger -p warning "${0}: ${3}: CRITICAL: capacity dropped below limit! (${1})" >&1
|
||||
exit 0
|
||||
;;
|
||||
warning-under)
|
||||
|
Loading…
x
Reference in New Issue
Block a user