diff options
author | mtm <mtm@FreeBSD.org> | 2009-02-17 11:55:50 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2009-02-17 11:55:50 +0000 |
commit | 11a3f6d70678aa71a8de150e7782914dbc0fe6ce (patch) | |
tree | f28241a7ad2612000934fe88403932fc53e59348 | |
parent | 68cf7202850943043001446b3f26039ba3325a3d (diff) | |
download | FreeBSD-src-11a3f6d70678aa71a8de150e7782914dbc0fe6ce.zip FreeBSD-src-11a3f6d70678aa71a8de150e7782914dbc0fe6ce.tar.gz |
Rename the rc.conf(5) knob if_up_delay to defaultroute_delay to better
reflect its purpose.
-rw-r--r-- | UPDATING | 6 | ||||
-rw-r--r-- | etc/defaults/rc.conf | 2 | ||||
-rwxr-xr-x | etc/rc.d/defaultroute | 6 | ||||
-rw-r--r-- | share/man/man5/rc.conf.5 | 2 |
4 files changed, 11 insertions, 5 deletions
@@ -22,6 +22,12 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 8.x IS SLOW: to maximize performance. (To disable malloc debugging, run ln -s aj /etc/malloc.conf.) +20090217: + The rc.conf(5) option if_up_delay has been renamed to + defaultroute_delay to better reflect its purpose. If you have + customized this setting in /etc/rc.conf you need to update it to + use the new name. + 20090216: xorg 7.4 wants to configure its input devices via hald which does not yet work with USB2. If the keyboard/mouse does not work in xorg then diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index 47f1f52..17c9f37 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -105,6 +105,7 @@ background_dhclient="YES" # Start dhcp client in the background. #background_dhclient_fxp0="YES" # Start dhcp client on fxp0 in the background. synchronous_dhclient="NO" # Start dhclient directly on configured # interfaces during startup. +defaultroute_delay="30" # Time to wait for a default route on a DHCP interface. wpa_supplicant_program="/usr/sbin/wpa_supplicant" wpa_supplicant_flags="-s" # Extra flags to pass to wpa_supplicant wpa_supplicant_conf_file="/etc/wpa_supplicant.conf" @@ -189,7 +190,6 @@ tcp_drop_synfin="NO" # Set to YES to drop TCP packets with SYN+FIN icmp_drop_redirect="NO" # Set to YES to ignore ICMP REDIRECT packets icmp_log_redirect="NO" # Set to YES to log ICMP REDIRECT packets network_interfaces="auto" # List of network interfaces (or "auto"). -if_up_delay="30" # Time to wait for interfaces to come up. cloned_interfaces="" # List of cloned network interfaces to create. #cloned_interfaces="gif0 gif1 gif2 gif3" # Pre-cloning GENERIC config. ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. diff --git a/etc/rc.d/defaultroute b/etc/rc.d/defaultroute index 3481fa9..35b1c88 100755 --- a/etc/rc.d/defaultroute +++ b/etc/rc.d/defaultroute @@ -35,16 +35,16 @@ defaultroute_start() fi # Wait for a default route - delay=${if_up_delay} + delay=${defaultroute_delay} while [ ${delay} -gt 0 ]; do defif=`get_default_if -inet` if [ -n "${defif}" ]; then - if [ ${delay} -ne ${if_up_delay} ]; then + if [ ${delay} -ne ${defaultroute_delay} ]; then echo -n "($defif)" fi break fi - if [ ${delay} -eq ${if_up_delay} ]; then + if [ ${delay} -eq ${defaultroute_delay} ]; then echo -n "Waiting ${delay}s for the default route interface: " else echo -n . diff --git a/share/man/man5/rc.conf.5 b/share/man/man5/rc.conf.5 index afc24c6..77e835c 100644 --- a/share/man/man5/rc.conf.5 +++ b/share/man/man5/rc.conf.5 @@ -406,7 +406,7 @@ variable with .Dq Li SYNCDHCP or .Dq Li NOSYNCDHCP . -.It Va if_up_delay +.It Va defaultroute_delay .Pq Vt int When set to a positive value, wait up to this long after configuring DHCP interfaces at startup to give the interfaces time to receive a lease. |