Skip to content

Instantly share code, notes, and snippets.

@cgarst
Last active November 29, 2021 22:46
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cgarst/4164f7a8b4742cb51d0862245786f144 to your computer and use it in GitHub Desktop.
Save cgarst/4164f7a8b4742cb51d0862245786f144 to your computer and use it in GitHub Desktop.
#!/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