Update of /cvsroot/devil-linux/build/config/etc/init.d
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9239/config/etc/init.d
Modified Files:
halt
Log Message:
initial checkin of apcupsd
Index: halt
===================================================================
RCS file: /cvsroot/devil-linux/build/config/etc/init.d/halt,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- halt 6 Sep 2003 01:59:26 -0000 1.5
+++ halt 15 Mar 2004 01:22:51 -0000 1.6
@@ -22,6 +22,18 @@
sync
+# See if this is a powerfail situation. #***apcupsd***
+if [ -f /etc/apcupsd/powerfail ]; then #***apcupsd***
+ echo #***apcupsd***
+ echo "APCUPSD will now power off the UPS" #***apcupsd***
+ echo #***apcupsd***
+ /etc/apcupsd/apccontrol killpower #***apcupsd***
+ echo #***apcupsd***
+ echo "Please ensure that the UPS has powered off before rebooting" #***apcupsd***
+ echo "Otherwise, the UPS may cut the power during the reboot!!!" #***apcupsd***
+ echo #***apcupsd***
+fi #***apcupsd***
+
beep; sleep 1; beep; beep;beep
/sbin/halt -d -f -i -p -h
|