diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2021-08-06 07:06:36 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2021-08-06 07:06:36 +0000 |
commit | 5a193870fbc3eb9546222722620aff3c472d63bd (patch) | |
tree | 1b0afbc2cef99149fcd3c2f0c9c21b6dbe5fab2f /etc/netstart | |
parent | 2c3ddcc14b836072d4f7010061aba9f419312224 (diff) |
As tim@ spotted, a use of V4_AUTOCONF crept in when the variable name
was actually V4_DHCPCONF from previous use. Rename all of the V4_DHCPCONF
to V4_AUTOCONF so everything uses the new name. ok and reminder about
the installer from tb@
Diffstat (limited to 'etc/netstart')
-rw-r--r-- | etc/netstart | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/netstart b/etc/netstart index 93f2a4e659c..acfe9a21fb2 100644 --- a/etc/netstart +++ b/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.213 2021/07/16 15:21:41 florian Exp $ +# $OpenBSD: netstart,v 1.214 2021/08/06 07:06:35 sthen Exp $ # Turn off Strict Bourne shell mode. set +o sh @@ -38,7 +38,7 @@ parse_hn_line() { inet) ((${#_c[*]} > 1)) || return if [[ ${_c[_name]} == autoconf ]]; then _cmds[${#_cmds[*]}]="ifconfig $_if ${_c[@]}" - V4_DHCPCONF=true + V4_AUTOCONF=true return fi [[ ${_c[_name]} == alias ]] && _mask=3 _bc=4 @@ -191,7 +191,7 @@ defaultroute() { _cmd="${_cmd#!}" ;; !(*:*)) - ($_v4set || $V4_DHCPCONF) && continue + ($_v4set || $V4_AUTOCONF) && continue _cmd="route -qn add -host default $gw" _v4set=true ;; @@ -222,7 +222,7 @@ FUNCS_ONLY=1 . /etc/rc.d/rc.subr _rc_parse_conf PRINT_ONLY=false -V4_DHCPCONF=false +V4_AUTOCONF=false V6_AUTOCONF=false while getopts ":n" opt; do |