summarylogtreecommitdiffstats
path: root/apcupsd_shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'apcupsd_shutdown')
-rw-r--r--apcupsd_shutdown9
1 files changed, 9 insertions, 0 deletions
diff --git a/apcupsd_shutdown b/apcupsd_shutdown
new file mode 100644
index 000000000000..4eff1ed697d7
--- /dev/null
+++ b/apcupsd_shutdown
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# See if this is a powerfail situation.
+if [ -f /etc/apcupsd/powerfail ]; then
+ echo
+ echo "APCUPSD will now power off the UPS"
+ echo
+ /etc/apcupsd/apccontrol killpower
+fi