Skip to content

Instantly share code, notes, and snippets.

@chilcote
Created July 24, 2012 18:32
Show Gist options
  • Save chilcote/3171697 to your computer and use it in GitHub Desktop.
Save chilcote/3171697 to your computer and use it in GitHub Desktop.
#!/bin/sh
while [ ${SECONDS} -le 10 ]; do
if [ "$(scutil -r dc.yourdomain.com)" = "Reachable" ]; then
echo yep
break
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment