summarylogtreecommitdiffstats
path: root/apcupsd_shutdown
blob: 4eff1ed697d72a60f841a96c03785709d84a2c73 (plain)
1
2
3
4
5
6
7
8
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