From d7d1b3cdbd66494dc8e032c9869f1ddc57bd1184 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 14 Dec 2018 22:08:26 +0800 Subject: [PATCH] rc: Let dhcpcd(8) go to background immediately by default Set the default value of "dhcpcd_flags" to be "-b", thus don't let dhcpcd(8) block the boot, especially when there is no wireless connection, with the default settings. --- etc/defaults/rc.conf | 2 +- share/man/man5/rc.conf.5 | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index aeb7253b0c..022a808b10 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -60,7 +60,7 @@ dhcp_client="dhclient" # Name of the rc script that is called to start # the DHCP client, e.g., "dhcpcd" or "dhclient" dhcpcd_enable="NO" # Set to YES to run dhcpcd in master mode. dhcpcd_program="/sbin/dhcpcd" -dhcpcd_flags="" +dhcpcd_flags="-b" dhclient_program="/sbin/dhclient" # Path to dhcp client program. dhclient_flags="-w" # Additional flags to pass to dhcp client. firewall_enable="NO" # Set to YES to enable firewall functionality diff --git a/share/man/man5/rc.conf.5 b/share/man/man5/rc.conf.5 index e3126e2851..536e57aa0c 100644 --- a/share/man/man5/rc.conf.5 +++ b/share/man/man5/rc.conf.5 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD: src/share/man/man5/rc.conf.5,v 1.197 2003/07/28 13:56:00 mbr Exp $ .\" -.Dd December 11, 2018 +.Dd December 14, 2018 .Dt RC.CONF 5 .Os .Sh NAME @@ -319,6 +319,11 @@ program (default Additional flags to pass to the .Xr dhcpcd 8 program. +The default value is +.Fl b , +i.e., tell +.Xr dhcpcd 8 +to go to background immediately. .It Va pf_enable .Pq Vt bool Set to -- 2.41.0