From 39d470956f6dd4b94cc63b99744083dab7767369 Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 20 Jun 2021 08:31:03 +0000 Subject: [PATCH] Don't try to install a default route with route(8) later on if we are using inet autoconf, like we do with "dhcp" and "inet6 autoconf". OK kn --- etc/netstart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/netstart b/etc/netstart index 46b0ef46d0a..eba11f4bbd1 100644 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.211 2020/12/23 17:22:07 krw Exp $ +# $OpenBSD: netstart,v 1.212 2021/06/20 08:31:03 florian Exp $ # Turn off Strict Bourne shell mode. set +o sh @@ -36,6 +36,11 @@ parse_hn_line() { return ;; inet) ((${#_c[*]} > 1)) || return + if [[ ${_c[_name]} == autoconf ]]; then + _cmds[${#_cmds[*]}]="ifconfig $_if ${_c[@]}" + V4_DHCPCONF=true + return + fi [[ ${_c[_name]} == alias ]] && _mask=3 _bc=4 [[ -n ${_c[_mask]} ]] && _c[_mask]="netmask ${_c[_mask]}" if [[ -n ${_c[_bc]} ]]; then -- 2.20.1