diff options
-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 } |