Skip to content

Instantly share code, notes, and snippets.

@fmoliveira
Forked from garthk/profile
Last active August 29, 2015 14:24
Show Gist options
  • Save fmoliveira/107ffe7ea9a64307bc42 to your computer and use it in GitHub Desktop.
Save fmoliveira/107ffe7ea9a64307bc42 to your computer and use it in GitHub Desktop.
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