ungleich-tools/mystrom-on.sh
Nico Schottelius e8a9467784 -white
2020-12-09 12:59:48 +01:00

16 lines
312 B
Bash
Executable file

#!/bin/sh
# 2020-12-07, Nico Schottelius
if [ $# -lt 1 ]; then
echo "$0 hostname [hostname...]"
echo " hostname: which mystrom to connect to"
exit 1
fi
while [ $# -ge 1 ]; do
hostname=$1; shift
curl --location \
--request GET \
"http://${hostname}/relay?state=1"
done