apcupsd/apcupsd_shutdown
2016-06-22 19:14:41 -05:00

9 lines
187 B
Bash

#!/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