From 93b9d6f227603bdf2da12cb8862dbcc999270c8b Mon Sep 17 00:00:00 2001 From: krw <> Date: Wed, 29 Aug 2018 11:30:48 +0000 Subject: [PATCH] Historically /etc/netstart (and the equivalent code in the install script) did 'ifconfig down' before starting dhclient(8). This was a way of ensuring old running copies of dhclient were killed before a new one started. Current dhclient does not need this assist, so change "ifconfig down" to "ifconfig up" pending further script optimizations. Similar to a 2014 attempt by halex@. Prompted by a misc@ report from Kristjan Komlosi reporting hanging diskless setups. ok halex@ kn@ --- src/etc/netstart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/netstart b/src/etc/netstart index 4010a25f..55da9c01 100644 --- a/src/etc/netstart +++ b/src/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')