From 747e9db1604cc27ec2ab15e829656172f1986ab4 Mon Sep 17 00:00:00 2001 From: Miloslav Trmac Date: Tue, 18 Apr 2006 20:11:45 +0000 Subject: Add NETWORKDELAY and LINKDELAY (#176851) --- rc.d/init.d/network | 4 +++- sysconfig.txt | 13 ++++++++++++- sysconfig/network-scripts/ifup | 7 ++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 535fbf58..e2060ae0 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -177,7 +177,9 @@ case "$1" in sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1 touch /var/lock/subsys/network - ;; + + [ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY} + ;; stop) # If this is a final shutdown/halt, check for network FS, # and unmount them even if the user didn't turn on netfs diff --git a/sysconfig.txt b/sysconfig.txt index e7dc860a..b380d0e7 100644 --- a/sysconfig.txt +++ b/sysconfig.txt @@ -177,6 +177,11 @@ Files in /etc/sysconfig All the IPX stuff is optional, and should default to off. + NETWORKDELAY= + Delay in seconds after all network interfaces are initialized. Useful if + network has spanning tree running and must wait for STP convergence. + Default: 0 (no delay) + NETWORKING_IPV6=yes|no Enable or disable global IPv6 initialization Default: no @@ -666,7 +671,13 @@ Files in /etc/sysconfig/network-scripts/ ETHTOOL_OPTS="speed 100 duplex full autoneg off" Note that changing speed or duplex settings almost always requires disabling autonegotiation with 'autoneg off'. - + LINKDELAY=