Skip to content

Instantly share code, notes, and snippets.

@jdrago999
Last active August 29, 2015 14:21
Show Gist options
  • Save jdrago999/f387661e3d30d5727862 to your computer and use it in GitHub Desktop.
Save jdrago999/f387661e3d30d5727862 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
sudo su
echo '64.150.181.206 energyworksadmin.wreckage.io' >> /etc/hosts
sleep 3
echo "Attempting to connect to energyworksadmin.wreckage.io..."
while ! nc -z energyworksadmin.wreckage.io 80; do
echo "Connection failed...trying again..."
sleep 1
done
echo "Connection successful - please continue"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment