diff --git a/src/etc/netstart b/src/etc/netstart index d5a7898d..255a8fc2 100644 --- a/src/etc/netstart +++ b/src/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.105 2005/05/22 08:56:08 todd Exp $ +# $OpenBSD: netstart,v 1.106 2005/09/28 17:40:30 todd Exp $ # Strip comments (and leading/trailing whitespace if IFS is set) # from a file and spew to stdout @@ -81,14 +81,13 @@ ifstart() { [ "$name" = "NONE" ] && name= [ "$mask" = "NONE" ] && mask= [ "$bcaddr" = "NONE" ] && bcaddr= - ifconfig $if $name $mask $bcaddr $ext1 $ext2 down - cmd="dhclient $if" + cmd="ifconfig $if $name $mask $bcaddr $ext1 $ext2 down" + cmd="$cmd;dhclient $if" setgateway=N ;; "rtsol") - ifconfig $if $name $mask $bcaddr $ext1 $ext2 up rtsolif="$rtsolif $if" - cmd= + cmd="ifconfig $if $name $mask $bcaddr $ext1 $ext2 up" ;; "up") # The only one of these guaranteed to be set is $if.