switch to dhcpleased/resolvd in base
authorflorian <florian@openbsd.org>
Fri, 16 Jul 2021 15:21:41 +0000 (15:21 +0000)
committerflorian <florian@openbsd.org>
Fri, 16 Jul 2021 15:21:41 +0000 (15:21 +0000)
OK deraadt

etc/netstart
etc/rc.conf

index eba11f4..93f2a4e 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $OpenBSD: netstart,v 1.212 2021/06/20 08:31:03 florian Exp $
+#      $OpenBSD: netstart,v 1.213 2021/07/16 15:21:41 florian Exp $
 
 # Turn off Strict Bourne shell mode.
 set +o sh
@@ -68,21 +68,8 @@ parse_hn_line() {
                _c[_name]="${_c[_name]} $_daddr"
                _cmds[$_prev]="${_c[@]}"
                ;;
-       dhcp)   unset _c[0]
-               _i=1
-               while [[ ${_c[$_i]} == @(-c|-d|-i|-n|-r|-v) ]]; do
-                       if [[ ${_c[$_i]} == @(-c|-i) ]]; then
-                               _dhcp[${#_dhcp[*]}]=${_c[$_i]}
-                               unset _c[$_i]
-                               (( _i++ ))
-                       fi
-                       _dhcp[${#_dhcp[*]}]=${_c[$_i]}
-                       unset _c[$_i]
-                       (( _i++ ))
-               done
-               ((${#_c[*]} > 0)) && _cmds[${#_cmds[*]}]="ifconfig $_if ${_c[@]}"
-               _cmds[${#_cmds[*]}]="dhclient ${_dhcp[@]} $_if"
-               V4_DHCPCONF=true
+       dhcp)   _cmds[${#_cmds[*]}]="ifconfig $_if inet autoconf"
+               V4_AUTOCONF=true
                ;;
        '!'*)   _cmd=$(print -- "${_c[@]}" | sed 's/\$if/'$_if'/g')
                _cmds[${#_cmds[*]}]="${_cmd#!}"
index fa50172..66dbc1e 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: rc.conf,v 1.223 2021/03/01 07:25:07 deraadt Exp $
+#      $OpenBSD: rc.conf,v 1.224 2021/07/16 15:21:41 florian Exp $
 
 # DO NOT EDIT THIS FILE!!
 #
@@ -18,7 +18,7 @@ bgpd_flags=NO
 bootparamd_flags=NO
 cron_flags=
 dhcpd_flags=NO
-dhcpleased_flags=NO
+dhcpleased_flags=
 dhcrelay_flags=NO      # for normal use: "-i interface [server]"
 dvmrpd_flags=NO
 eigrpd_flags=NO
@@ -52,7 +52,7 @@ radiusd_flags=NO
 rarpd_flags=NO
 rbootd_flags=NO
 relayd_flags=NO
-resolvd_flags=NO
+resolvd_flags=
 ripd_flags=NO
 route6d_flags=NO       # be sure to set net.inet6.ip6.forwarding=1
 sasyncd_flags=NO