From e519a04c4b111e2715dc254a8e31d081a073cf42 Mon Sep 17 00:00:00 2001 From: halex <> Date: Fri, 26 Sep 2014 15:18:01 +0000 Subject: [PATCH] remove explicit 'down' of an interface before starting a dhcp request, thereby avoiding annoying delays for some switch configurations ok claudio@ deraadt@ i would add ok phessler@, but it was not valid without an ok krw@ --- src/etc/netstart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/netstart b/src/etc/netstart index fac76d5d..26bdb360 100644 --- a/src/etc/netstart +++ b/src/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.141 2014/07/12 14:39:31 stsp Exp $ +# $OpenBSD: netstart,v 1.142 2014/09/26 15:18:01 halex Exp $ # Strip comments (and leading/trailing whitespace if IFS is set) # from a file and spew to stdout @@ -63,7 +63,7 @@ ifstart() { [ "$name" = "NONE" ] && name= [ "$mask" = "NONE" ] && mask= [ "$bcaddr" = "NONE" ] && bcaddr= - cmd="ifconfig $if $name $mask $bcaddr $ext1 $ext2 down" + cmd="ifconfig $if $name $mask $bcaddr $ext1 $ext2" cmd="$cmd;dhclient $if" dhcpif="$dhcpif $if" ;;