From eb6d89665c86c1ea518de7b35d0c6a017cbc29f8 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 29 Dec 2005 17:29:10 +0000 Subject: [PATCH] Add a 2 second delay after configuring interfaces before continuing. dhclient and named can get mightily confused if an interface they need isn't entirely operational. This is a temporary hack until we get more proactive interface testing ported from FreeBSD. --- etc/rc.d/netif | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/rc.d/netif b/etc/rc.d/netif index 03cf226172..08cec7a0ca 100644 --- a/etc/rc.d/netif +++ b/etc/rc.d/netif @@ -23,7 +23,7 @@ # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # $FreeBSD: src/etc/rc.d/netif,v 1.2 2003/06/29 05:34:41 mtm Exp $ -# $DragonFly: src/etc/rc.d/netif,v 1.4 2005/11/19 21:47:32 swildner Exp $ +# $DragonFly: src/etc/rc.d/netif,v 1.5 2005/12/29 17:29:10 dillon Exp $ # # PROVIDE: netif @@ -57,6 +57,11 @@ network_start() # Configure the interface(s). network_common ifn_start verbose + # Give our interfaces a little time to come up + # before we start pounding them. In particular, dhclient + # and named can get mightily confused. + sleep 2 + # Resync ipfilter /etc/rc.d/ipfilter resync } -- 2.41.0