Skip to content

Instantly share code, notes, and snippets.

@scalp42
Forked from j3tm0t0/geteip.sh
Created March 19, 2014 22:57
Show Gist options
  • Select an option

  • Save scalp42/9653239 to your computer and use it in GitHub Desktop.

Select an option

Save scalp42/9653239 to your computer and use it in GitHub Desktop.
#!/bin/sh
domain=$1
wait=$2
if [ "$domain" = "" ]
then
domain=standard
else
domain_option="-d $domain"
fi
if [ "$wait" = "" ]
then
wait=1
fi
while [ 1 ]
do
ec2-allocate-address $domain_option || break
sleep $wait
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment