Add nut SSH remote shutdown

This commit is contained in:
Daniel A. Maierhofer
2018-03-05 01:57:41 +01:00
parent 25b918804d
commit b4e2669492
13 changed files with 77 additions and 4 deletions

View File

@@ -5,7 +5,9 @@
#! /bin/sh
case $1 in
onbatt)
ssh
{% for host in ups_hosts %}
ssh root@{{ host }}
{% endfor %}
;;
lowbatt)
/sbin/upssched fsd;;