Last active
November 29, 2021 22:46
-
-
Save cgarst/4164f7a8b4742cb51d0862245786f144 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create a "castdevices.txt" file in the same dir as this script, where it's a list of cast device IP addresses. | |
while read p; do | |
echo Rebooting $p | |
curl -Lv -H Content-Type:application/json \ | |
--data-raw '{"params":"now"}' \ | |
http://$p:8008/setup/reboot | |
done <castdevices.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment