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