ip="$1" shift; echo "waiting for $ip to become available..." while true; do ping -c1 -W1 "$ip" &> /dev/null && break; done exec "$@"