summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--distrib/miniroot/install.sub4
-rw-r--r--etc/netstart4
2 files changed, 4 insertions, 4 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 135dbe70868..1585d6c15d7 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/ksh
-# $OpenBSD: install.sub,v 1.1101 2018/08/22 16:53:36 tb Exp $
+# $OpenBSD: install.sub,v 1.1102 2018/08/29 11:30:48 krw Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
@@ -2311,7 +2311,7 @@ parse_hn_line() {
;;
dhcp) ! $_has_dhclient && return
_c[0]=
- _cmds[${#_cmds[*]}]="ifconfig $_if ${_c[@]} down;dhclient $_if"
+ _cmds[${#_cmds[*]}]="ifconfig $_if ${_c[@]} up;dhclient $_if"
V4_DHCPCONF=true
;;
'!'*|bridge)
diff --git a/etc/netstart b/etc/netstart
index 4010a25f81f..55da9c01a36 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: netstart,v 1.199 2018/07/08 20:10:26 tb Exp $
+# $OpenBSD: netstart,v 1.200 2018/08/29 11:30:48 krw Exp $
# Turn off Strict Bourne shell mode.
set +o sh
@@ -65,7 +65,7 @@ parse_hn_line() {
_cmds[$_prev]="${_c[@]}"
;;
dhcp) _c[0]=
- _cmds[${#_cmds[*]}]="ifconfig $_if ${_c[@]} down;dhclient $_if"
+ _cmds[${#_cmds[*]}]="ifconfig $_if ${_c[@]} up;dhclient $_if"
V4_DHCPCONF=true
;;
'!'*) _cmd=$(print -- "${_c[@]}" | sed 's/\$if/'$_if'/g')