Skip to content

Instantly share code, notes, and snippets.

@MatthewRDodds
Created July 10, 2015 13:35
Show Gist options
  • Save MatthewRDodds/7d4423dc579d5306fd17 to your computer and use it in GitHub Desktop.
Save MatthewRDodds/7d4423dc579d5306fd17 to your computer and use it in GitHub Desktop.
wait4eth1 docker
wait4eth1() {
CNT=0
until ip a show eth1 | grep -q UP
do
[ $((CNT++)) -gt 60 ] && break || sleep 1
done
sleep 1
}
wait4eth1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment