Created
January 3, 2018 17:06
-
-
Save franga2000/fb0fbabe1881c9bc4d7f48fdf95c121d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sleeps until an interface is configured | |
# Param 1 is the interface name | |
function wait_for_iface() { | |
while ip a | grep $1 | grep "state DOWN" > /dev/null; do | |
sleep 1 | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment