Add reboot script

This commit is contained in:
Donald Burr 2015-02-19 17:38:56 -08:00
parent 3b671a6f43
commit 69781e70e9

10
acatcher/reboot_streamers.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
if [ ! -f "$1" ]; then
echo "error: must specify rooms file"
exit 1
fi
NUM=0
for HOST in `cat "$1"`; do
>&2 echo stopping host $HOST
ssh pi@$HOST "sudo reboot"
done