Permalink
Browse files

added sleep til network actually up

  • Loading branch information...
1 parent ad56ab7 commit 1edd959d2eb70120f5a9dda4f92d56394bc88dfe root committed Apr 14, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 etc/network/if-up.d/webc-id
@@ -14,6 +14,9 @@ test -e $flag && {
}
touch $flag
+while ! ip route | grep -qs default; do
+ sleep 0.25
+done
_mac() {
ip route | egrep '^default' | sed -nr 's/.*dev (\S+).*/\1/p' | while read eth; do

0 comments on commit 1edd959

Please sign in to comment.