diff options
author | mbr <mbr@FreeBSD.org> | 2003-07-28 08:15:52 +0000 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2003-07-28 08:15:52 +0000 |
commit | ca899a0b46fc85d9573043f593bd548fbd030f3c (patch) | |
tree | 50d27246f714d92d8426cf7a7dda729794f61012 /etc | |
parent | 5bb0f030f2d22c2b93dc44bfcbf389827999ed18 (diff) | |
download | FreeBSD-src-ca899a0b46fc85d9573043f593bd548fbd030f3c.zip FreeBSD-src-ca899a0b46fc85d9573043f593bd548fbd030f3c.tar.gz |
Always start dhclient in the background.
Reviewed by: mtm
Diffstat (limited to 'etc')
-rw-r--r-- | etc/defaults/rc.conf | 1 | ||||
-rwxr-xr-x | etc/rc.d/dhclient | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index d7623ac..31df3c7 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -57,6 +57,7 @@ hostname="" # Set this! nisdomainname="NO" # Set to NIS domain if using NIS (or NO). dhclient_program="/sbin/dhclient" # Path to dhcp client program. dhclient_flags="" # Additional flags to pass to dhcp client. +background_dhclient="YES" # Start dhcp client in the background. firewall_enable="NO" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) diff --git a/etc/rc.d/dhclient b/etc/rc.d/dhclient index 22a7694..895d34a 100755 --- a/etc/rc.d/dhclient +++ b/etc/rc.d/dhclient @@ -59,6 +59,10 @@ dhclient_prestart() ifscript_up ${ifn} done + if checkyesno background_dhclient; then + rc_flags="${rc_flags} -nw" + fi + rc_flags="${rc_flags} ${_cooked_list}" return 0 } |