e8910538de
(1)Release Version Upgrade (2)Matching code changes with el7 to el8 Story: 2006729 Task: 37669 Depends-On: https://review.opendev.org/#/c/696481/ Depends-On: https://review.opendev.org/#/c/696050/ Change-Id: I085c40a52d94ca38f63f2ff98db74149b750f922 Signed-off-by: Dongqi Chen <chen.dq@neusoft.com>
27 lines
881 B
Diff
27 lines
881 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
|
|
|
|
Signed-off-by: Dongqi Chen <chen.dq@neusoft.com>
|
|
---
|
|
network-scripts/network-functions | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/network-scripts/network-functions b/network-scripts/network-functions
|
|
index 080101b..798f28a 100644
|
|
--- a/network-scripts/network-functions
|
|
+++ b/network-scripts/network-functions
|
|
@@ -456,7 +456,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.8.3.1
|
|
|