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