source: packages/net/apcupsd/files/changeme @ 20193

Last change on this file since 20193 was 20193, checked in by thepeople, 7 years ago

fix changeme script, from #6828

File size: 414 bytes
Line 
1#!/bin/sh
2#
3# This shell script if placed in /etc/apcupsd
4# will be called by /etc/apcupsd/apccontrol when apcupsd
5# detects that the battery should be replaced.
6# We send an email message to root to notify him.
7#
8. /etc/apcupsd/apcupsd_mail.conf
9
10MSG="$HOSTNAME UPS battery needs changing NOW."
11#
12(
13   echo "$MSG"
14   echo " "
15   /usr/sbin/apcaccess status
16) | $MAILPROG -h $MAILHOST -f $FROM -s "$MSG" $TO
17exit 0
Note: See TracBrowser for help on using the repository browser.