3cd12006bb
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
26 lines
880 B
Diff
26 lines
880 B
Diff
From 6afaa4c6e0f4ca0821da986e3e4cc1a0bf56bebb Mon Sep 17 00:00:00 2001
|
|
From: Ludovic Beliveau <ludovic.beliveau@windriver.com>
|
|
Date: Thu, 9 Jun 2016 23:05:17 -0400
|
|
Subject: [PATCH 1/1] force-delay-check-link-down
|
|
|
|
---
|
|
sysconfig/network-scripts/network-functions | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
|
|
index 080101b..798f28a 100644
|
|
--- a/sysconfig/network-scripts/network-functions
|
|
+++ b/sysconfig/network-scripts/network-functions
|
|
@@ -460,7 +460,7 @@ check_link_down ()
|
|
ip link set dev $1 up >/dev/null 2>&1
|
|
fi
|
|
timeout=0
|
|
- delay=10
|
|
+ delay=20
|
|
[ -n "$LINKDELAY" ] && delay=$(($LINKDELAY * 2))
|
|
while [ $timeout -le $delay ]; do
|
|
[ "$(cat /sys/class/net/$REALDEVICE/carrier 2>/dev/null)" != "0" ] && return 1
|
|
--
|
|
1.9.1
|
|
|