Add reboot script
This commit is contained in:
parent
3b671a6f43
commit
69781e70e9
1 changed files with 10 additions and 0 deletions
10
acatcher/reboot_streamers.sh
Executable file
10
acatcher/reboot_streamers.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue