Magellan Linux

Annotation of /trunk/dracut/patches/dracut-034-wait_for_if_up-wait-for-state-up.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2370 - (hide annotations) (download)
Mon Jan 20 09:52:51 2014 UTC (10 years, 5 months ago) by niro
File size: 762 byte(s)
-added upstream patches to fix networking
1 niro 2370 From 56ee31ccfec50f40bade2127eb1fae041a81f16a Mon Sep 17 00:00:00 2001
2     From: Harald Hoyer <harald@redhat.com>
3     Date: Mon, 02 Dec 2013 09:34:18 +0000
4     Subject: network/net-lib.sh:wait_for_if_up() wait for "state UP"
5    
6     really wait for "state UP", otherwise it returns earlier than we want
7     ---
8     diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
9     index 88e72ec..0aa312a 100644
10     --- a/modules.d/40network/net-lib.sh
11     +++ b/modules.d/40network/net-lib.sh
12     @@ -443,7 +443,7 @@ wait_for_if_up() {
13     local li
14     while [ $cnt -lt 200 ]; do
15     li=$(ip -o link show up dev $1)
16     - [ -n "$li" ] && return 0
17     + [ -n "$li" ] && [ -z "${li##*state UP*}" ] && return 0
18     sleep 0.1
19     cnt=$(($cnt+1))
20     done
21     --
22     cgit v0.9.2