Skip to content

Instantly share code, notes, and snippets.

@ptigas
Created January 15, 2020 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptigas/15aeb555a4bfb65d9b192175bbc411ff to your computer and use it in GitHub Desktop.
Save ptigas/15aeb555a4bfb65d9b192175bbc411ff to your computer and use it in GitHub Desktop.
bt wake script
string=$(curl -Is http://ptigas.com | head -1)
if [[ $string == *"OK"* ]]; then
echo "IPv4 is up"
else
echo "IPv4 is down"
curl 'https://www.btopenzone.com:8443/tbbLogon' -d "username=<username>&password=<password>"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment