net-nut: Add UPS notifications via sendmail

Add option to send email notification via sendmail
(or replacement).

Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
This commit is contained in:
Daniel Dickinson
2017-01-11 18:54:40 -05:00
parent 5503dac806
commit c94e334c4e
3 changed files with 73 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
/usr/sbin/sendmail root <<EOF
From: root
To: root
Subject: UPS $NOTIFYTYPE Notification
$1
.
EOF