]> git.pld-linux.org Git - packages/apcupsd.git/commitdiff
-rc.d halt script for apcupsd
authorhunter <hunter@pld-linux.org>
Sat, 17 Apr 2004 18:36:05 +0000 (18:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apcupsd-rc.d-halt -> 1.1

apcupsd-rc.d-halt [new file with mode: 0644]

diff --git a/apcupsd-rc.d-halt b/apcupsd-rc.d-halt
new file mode 100644 (file)
index 0000000..0ebab58
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ -f /etc/apcupsd/powerfail ]; then
+       echo "APCUPSD to the Rescue!"
+       echo
+       /etc/apcupsd/apccontrol killpower 
+       echo
+       sleep 120
+# Never reached in normal powerfailure situation :)
+    exit 1
+fi
This page took 0.082518 seconds and 4 git commands to generate.