#!/bin/sh # # This shell script will be called by apccontrol when the # UPS goes back on to the mains after a power failure. # We send an email message. apcupsd-mail.sh "Power has returned" exit 0