aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-08-01 15:24:57 +0000
committerBill Nottingham <notting@redhat.com>2006-08-01 15:24:57 +0000
commitdba091408c1301a44e50cc75a79429d26034c5fd (patch)
tree4d1979f4348f8e3d2645b00c9dfc94a89197a95a /sysconfig/network-scripts
parent4a292da5e8ffa349879b721cecfda856d5969c3a (diff)
downloadinitscripts-dba091408c1301a44e50cc75a79429d26034c5fd.tar
initscripts-dba091408c1301a44e50cc75a79429d26034c5fd.tar.gz
initscripts-dba091408c1301a44e50cc75a79429d26034c5fd.tar.bz2
initscripts-dba091408c1301a44e50cc75a79429d26034c5fd.tar.xz
initscripts-dba091408c1301a44e50cc75a79429d26034c5fd.zip
support LINKDELAY for dhcp (#191137)
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r--sysconfig/network-scripts/network-functions4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index ca2d802a..e60d704b 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -308,7 +308,9 @@ check_link_down ()
ip link set dev $1 up >/dev/null 2>&1
fi
timeout=0
- while [ $timeout -le 10 ]; do
+ delay=10
+ [ -n "$LINKDELAY" ] && delay=$(($LINKDELAY * 2))
+ while [ $timeout -le $delay ]; do
check_mii_tool $1
m=$?
check_ethtool $1