Package: apcupsd
Version: 3.12.3-1
I think that can be useful add support for hibernate.
For example in my workstation i have software suspend 2 and hibernate
configured, so i've made an ugly hack to /etc/apcupsd/apccontrol :
--- apccontrol_ORIG 2006-08-03 14:04:19.000000000 +0200
+++ apccontrol 2006-08-03 14:05:51.000000000 +0200
@@ -21,6 +21,7 @@
APCPID=/var/run/apcupsd.pid
APCUPSD=/sbin/apcupsd
SHUTDOWN=/sbin/shutdown
+HIBERNATE=/usr/sbin/hibernate
SCRIPTSHELL=/bin/sh
SCRIPTDIR=/etc/apcupsd
WALL=wall
@@ -105,7 +106,7 @@
;;
doshutdown)
echo "UPS ${2} initiated Shutdown Sequence" | ${WALL}
- ${SHUTDOWN} -h now "apcupsd UPS ${2} initiated shutdown"
+ ${HIBERNATE}
;;
annoyme)
echo "Power problems with UPS ${2}. Please logoff." | ${WALL}
Maybe a proper implementation is to have a "dohibernate" to call if a
flag in apcupsd.conf is set.
TIA for your attention
luca
--
http://shammash.homelinux.org/ - http://www.artha.org/ - http://www.yue.it/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]