Always start dhclient in the background.

Reviewed by:	mtm
This commit is contained in:
Martin Blapp 2003-07-28 08:15:52 +00:00
parent 24dd3413f5
commit 0888a8766e
2 changed files with 5 additions and 0 deletions

View File

@ -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)

View File

@ -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
}