From owner-freebsd-rc@FreeBSD.ORG Mon Sep 20 11:07:03 2010 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65A5610656ED for ; Mon, 20 Sep 2010 11:07:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 48CC18FC23 for ; Mon, 20 Sep 2010 11:07:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8KB73QI015058 for ; Mon, 20 Sep 2010 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8KB72cL015056 for freebsd-rc@FreeBSD.org; Mon, 20 Sep 2010 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 20 Sep 2010 11:07:02 GMT Message-Id: <201009201107.o8KB72cL015056@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-rc@FreeBSD.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2010 11:07:03 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/149867 rc [PATCH] rc.d script to manage multiple FIBS (kern opti o conf/149831 rc [PATCH] add support to /etc/rc.d/jail for delegating Z o conf/148961 rc [PATCH] netstart and network_ipv6 contains references o conf/148656 rc rc.firewall(8): {oip} and {iip} variables in rc.firewa o conf/147685 rc [rc.d] [patch] new feature for /etc/rc.d/fsck o conf/147444 rc [rc.d] [patch] /etc/rc.d/zfs stop not called on reboot o conf/146053 rc [patch] [request] shutdown of jails breaks inter-jail o conf/145445 rc [rc.d] error in /etc/rc.d/jail (bad logic) o conf/145440 rc [rc.d] [patch] add multiple fib support (setfib) in /e o conf/145399 rc [patch] rc.d scripts are unable to start/stop programs o conf/145344 rc [patch] Fix kitchen sink approach for rc.d scripts ins o conf/145009 rc [patch] rc.subr(8): rc.conf should allow mac label con o conf/144213 rc [rc.d] [patch] Disappearing zvols on reboot o conf/143637 rc [patch] ntpdate(8) support for ntp-servers supplied by o conf/143085 rc [patch] ftp-proxy(8) rc(8) with multiple instances o conf/143084 rc [jail] [patch]: fix rc.d/jail creating stray softlinks o conf/142973 rc [jail] [patch] Strange counter init value in jail rc o conf/142434 rc [patch] Add cpuset(1) support to rc.subr(8) o conf/142304 rc rc.conf(5): mdconfig and mdconfig2 rc.d scripts lack e o conf/141909 rc rc.subr(8): [patch] add rc.conf.d support to /usr/loca o conf/141907 rc [rc.d] Bug if mtu (maybe others?) is set as first argu o conf/141678 rc [patch] A minor enhancement to how /etc/rc.d/jail dete o conf/141275 rc [request] dhclient(8) rc script should print something o conf/140440 rc [patch] allow local command files in rc.{suspend,resum o conf/140261 rc [patch] Improve flexibility of mdconfig2 startup scrip o conf/138208 rc [rc.d] [patch] Making rc.firewall (workstation) IPv6 a o conf/137629 rc [rc.d] background_dhclient rc.conf option causing doub o conf/137470 rc [PATCH] /etc/rc.d/mdconfig2 : prioritize cli parameter o conf/137271 rc [rc.d] Cannot update /etc/host.conf when root filesyst o conf/136875 rc [request] _flags appending o conf/136624 rc [rc.d] sysctl variables for ipnat are not applied on b o conf/135338 rc [rc.d] pf startup order seems broken [regression] o conf/134918 rc [patch] rc.subr fails to detect perl daemons o conf/134660 rc [patch] rc-script for initializing ng_netflow+ng_ipfw o conf/134333 rc PPP configuration problem in the rc.d scripts in combi o conf/134006 rc [patch] Unload console screensaver kernel modules if s o conf/133987 rc [rc.d] defaultroute broken with DHCP in some cases o conf/133890 rc [patch] sshd(8): add multiple profiles to the rc.d scr o conf/132483 rc rc.subr(8) [patch] setfib(1) support for rc.subr o conf/132476 rc [rc.d] [patch] add support setfib(1) in rc.d/routing o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o conf/127917 rc [patch] dumpon rejects on start with physmem>swap even o bin/126562 rc rcorder(8) fails to run unrelated startup scripts when o conf/126392 rc [patch] rc.conf ifconfig_xx keywords cannot be escaped p bin/126324 rc [patch] rc.d/tmp: Prevent mounting /tmp in second tim o conf/124747 rc [patch] savecore can't create dump from encrypted swap o conf/124248 rc [jail] [patch] add support for nice value for rc.d/jai o conf/123734 rc [patch] Chipset VIA CX700 requires extra initializatio o conf/123222 rc [patch] Add rtprio(1)/idprio(1) support to rc.subr(8). o conf/122968 rc [rc.d] /etc/rc.d/addswap: md swapfile multiplication a o conf/122477 rc [patch] /etc/rc.d/mdconfig and mdconfig2 are ignoring o conf/122170 rc [patch] [request] New feature: notify admin via page o o kern/121566 rc [nfs] [request] [patch] ethernet iface should be broug o conf/120431 rc [patch] devfs.rules are not initialized under certain o conf/120406 rc [devd] [patch] Handle newly attached pcm devices (eg. o conf/119874 rc [patch] "/etc/rc.d/pf reload" fails if there are macro o conf/119076 rc [patch] [rc.d] /etc/rc.d/netif tries to remove alias a o bin/118325 rc [patch] [request] new periodic script to test statuses o conf/118255 rc savecore never finding kernel core dumps (rcorder prob o conf/117935 rc [patch] ppp fails to start at boot because of missing o conf/113915 rc [patch] ndis wireless driver fails to associate when i o conf/109980 rc /etc/rc.d/netif restart doesn't destroy cloned_interfa o conf/109562 rc [rc.d] [patch] [request] Make rc.d/devfs usable from c o conf/108589 rc rtsol(8) fails due to default ipfw rules o conf/106009 rc [ppp] [patch] [request] Fix pppoed startup script to p o conf/105689 rc [ppp] [request] syslogd starts too late at boot o conf/105568 rc [patch] [request] Add more flexibility to rc.conf, to o conf/105145 rc [ppp] [patch] [request] add redial function to rc.d/pp o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/102700 rc [geli] [patch] Add encrypted /tmp support to GELI/GBDE o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/89870 rc [patch] [request] make netif verbose rc.conf toggle o conf/89061 rc [patch] IPv6 6to4 auto-configuration enhancement o conf/88913 rc [patch] wrapper support for rc.subr o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/73677 rc [patch] add support for powernow states to power_profi o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/56934 rc [patch] rc.firewall rules for natd expect an interface o conf/45226 rc [patch] Fix for rc.network, ppp-user annoyance o conf/44170 rc [patch] Add ability to run multiple pppoed(8) on start 86 problems total. From owner-freebsd-rc@FreeBSD.ORG Mon Sep 20 20:12:15 2010 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2E891065670; Mon, 20 Sep 2010 20:12:15 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 717D58FC08; Mon, 20 Sep 2010 20:12:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o8KKCF1s086175; Mon, 20 Sep 2010 20:12:15 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8KKCFbY086171; Mon, 20 Sep 2010 20:12:15 GMT (envelope-from gavin) Date: Mon, 20 Sep 2010 20:12:15 GMT Message-Id: <201009202012.o8KKCFbY086171@freefall.freebsd.org> To: gavin@FreeBSD.org, freebsd-standards@FreeBSD.org, freebsd-rc@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: conf/150474: [patch] rc.d/accounting: Add ability to set location of sa data file X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2010 20:12:15 -0000 Old Synopsis: Location data file sa New Synopsis: [patch] rc.d/accounting: Add ability to set location of sa data file Responsible-Changed-From-To: freebsd-standards->freebsd-rc Responsible-Changed-By: gavin Responsible-Changed-When: Mon Sep 20 20:10:19 UTC 2010 Responsible-Changed-Why: Over to maintainer(s). This patch looks trivial, hopefully this is one that can be easily committed. http://www.freebsd.org/cgi/query-pr.cgi?pr=150474 From owner-freebsd-rc@FreeBSD.ORG Sat Sep 25 00:15:25 2010 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9FC41065673 for ; Sat, 25 Sep 2010 00:15:25 +0000 (UTC) (envelope-from emaste@freebsd.org) Received: from mail1.sandvine.com (Mail1.sandvine.com [64.7.137.134]) by mx1.freebsd.org (Postfix) with ESMTP id 656898FC0A for ; Sat, 25 Sep 2010 00:15:25 +0000 (UTC) Received: from labgw2.phaedrus.sandvine.com (192.168.222.22) by WTL-EXCH-1.sandvine.com (192.168.196.31) with Microsoft SMTP Server id 14.0.694.0; Fri, 24 Sep 2010 20:04:35 -0400 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 10332) id 9979F33C00; Fri, 24 Sep 2010 20:04:35 -0400 (EDT) Date: Fri, 24 Sep 2010 20:04:35 -0400 From: Ed Maste To: Message-ID: <20100925000435.GA62501@sandvine.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Wait for carrier in /etc/rc.d/defaultroute X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Sep 2010 00:15:25 -0000 --LZvS9be/3tNcYl/X Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline /etc/rc.d/defaultroute currently bails immediately if all interfaces set to use DHCP have no carrier. This caused grief at work as it takes some time for link to be established, and defaultroute ran before this happened. The rest of rc.d/ ran then before DHCP could assign an address and route. The attached patch introduces a defaultroute_carrier_delay variable and a change to /etc/rc.d/defaultroute to wait that long before bailing out if there are no interfaces with carrier. With the default settings defaultroute will wait for five seconds to see if any interface gets carrier. The original 30 second wait for a default route to appear is unchanged. Any comments? I'll commit it sometime next week if there's no concern. -Ed --LZvS9be/3tNcYl/X Content-Type: text/plain; charset="us-ascii" Content-Disposition: attachment; filename="defaultroute.patch" Index: etc/defaults/rc.conf =================================================================== --- etc/defaults/rc.conf (revision 213127) +++ etc/defaults/rc.conf (working copy) @@ -108,6 +108,7 @@ 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. +defaultroute_carrier_delay="5" # Time to wait for carrier while waiting for a default route. 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" Index: etc/rc.d/defaultroute =================================================================== --- etc/rc.d/defaultroute (revision 213127) +++ etc/rc.d/defaultroute (working copy) @@ -1,6 +1,6 @@ #!/bin/sh # -# Wait for the default route to be up +# Wait for the default route to be up if DHCP is in use # # $FreeBSD$ # @@ -16,9 +16,23 @@ start_cmd="defaultroute_start" stop_cmd=":" +# Does any interface have a carrier? +defaultroute_carrier() +{ + local carrier nocarrier + + carrier=1 + for _if in ${dhcp_interfaces}; do + output=`/sbin/ifconfig ${_if}` + nocarrier=`expr "${output}" : '.*[[:blank:]]status: \(no carrier\)'` + [ -z "${nocarrier}" ] && carrier=0 + done + return ${carrier} +} + defaultroute_start() { - local output carrier nocarrier nl + local nl waited afexists inet || return 0 @@ -26,35 +40,30 @@ # if none of the dhcp interfaces is plugged in. dhcp_interfaces=`list_net_interfaces dhcp` [ -z "${dhcp_interfaces}" ] && return - carrier=false - for _if in ${dhcp_interfaces}; do - output=`/sbin/ifconfig ${_if}` - nocarrier=`expr "${output}" : '.*[[:blank:]]status: \(no carrier\)'` - [ -z "${nocarrier}" ] && carrier=true - done - if ! ${carrier}; then - return - fi # Wait for a default route - delay=${defaultroute_delay} - while [ ${delay} -gt 0 ]; do + waited=0 + while [ ${waited} -lt ${defaultroute_delay} ]; do defif=`get_default_if -inet` if [ -n "${defif}" ]; then - if [ ${delay} -ne ${defaultroute_delay} ]; then + if [ ${waited} -ne 0 ]; then echo -n "($defif)" nl=1 fi break fi - if [ ${delay} -eq ${defaultroute_delay} ]; then - echo -n "Waiting ${delay}s for the default route interface: " + if [ ${waited} -eq 0 ]; then + echo -n "Waiting ${defaultroute_delay}s for the default route interface: " else echo -n . fi + if [ ${waited} -eq ${defaultroute_carrier_delay} ] && ! defaultroute_carrier; then + echo -n "(no carrier)" + break + fi nl=1 sleep 1 - delay=$(($delay - 1)) + waited=$(($waited + 1)) done [ -n "$nl" ] && echo --LZvS9be/3tNcYl/X-- From owner-freebsd-rc@FreeBSD.ORG Sat Sep 25 18:54:49 2010 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 144501065670; Sat, 25 Sep 2010 18:54:49 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id AEE7E8FC08; Sat, 25 Sep 2010 18:54:48 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.3/8.14.3) with ESMTP id o8PIV5HA080396; Sat, 25 Sep 2010 13:31:05 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.3/8.14.3/Submit) id o8PIV5lB080395; Sat, 25 Sep 2010 13:31:05 -0500 (CDT) (envelope-from brooks) Date: Sat, 25 Sep 2010 13:31:05 -0500 From: Brooks Davis To: Ed Maste Message-ID: <20100925183105.GI72897@lor.one-eyed-alien.net> References: <20100925000435.GA62501@sandvine.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="o71xDhNo7p97+qVi" Content-Disposition: inline In-Reply-To: <20100925000435.GA62501@sandvine.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Sat, 25 Sep 2010 13:31:05 -0500 (CDT) Cc: freebsd-rc@freebsd.org Subject: Re: Wait for carrier in /etc/rc.d/defaultroute X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Sep 2010 18:54:49 -0000 --o71xDhNo7p97+qVi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 24, 2010 at 08:04:35PM -0400, Ed Maste wrote: > /etc/rc.d/defaultroute currently bails immediately if all interfaces > set to use DHCP have no carrier. This caused grief at work as it takes > some time for link to be established, and defaultroute ran before this=20 > happened. The rest of rc.d/ ran then before DHCP could assign an > address and route. >=20 > The attached patch introduces a defaultroute_carrier_delay variable > and a change to /etc/rc.d/defaultroute to wait that long before bailing > out if there are no interfaces with carrier. With the default settings > defaultroute will wait for five seconds to see if any interface gets=20 > carrier. The original 30 second wait for a default route to appear is > unchanged. >=20 > Any comments? I'll commit it sometime next week if there's no concern. This seems like a reasionable solution. Just checking for carrier didn't work as well as I'd hoped. Have you tested this on a bridge or similar interface? It seems like in some senses there's probably something more the nic could be telling us about it's state so we could do a better job here. What we really want to know is if we have any dhcp interfaces that have a chance of getting a lease any time soon so if the interface could say "I = think I've got a cable attached" that would be useful. -- Brooks > -Ed > Index: etc/defaults/rc.conf > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- etc/defaults/rc.conf (revision 213127) > +++ etc/defaults/rc.conf (working copy) > @@ -108,6 +108,7 @@ > synchronous_dhclient=3D"NO" # Start dhclient directly on configured > # interfaces during startup. > defaultroute_delay=3D"30" # Time to wait for a default route on a DHCP = interface. > +defaultroute_carrier_delay=3D"5" # Time to wait for carrier while waitin= g for a default route. > wpa_supplicant_program=3D"/usr/sbin/wpa_supplicant" > wpa_supplicant_flags=3D"-s" # Extra flags to pass to wpa_supplicant > wpa_supplicant_conf_file=3D"/etc/wpa_supplicant.conf" > Index: etc/rc.d/defaultroute > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- etc/rc.d/defaultroute (revision 213127) > +++ etc/rc.d/defaultroute (working copy) > @@ -1,6 +1,6 @@ > #!/bin/sh > # > -# Wait for the default route to be up > +# Wait for the default route to be up if DHCP is in use > # > # $FreeBSD$ > # > @@ -16,9 +16,23 @@ > start_cmd=3D"defaultroute_start" > stop_cmd=3D":" > =20 > +# Does any interface have a carrier? > +defaultroute_carrier() > +{ > + local carrier nocarrier > + > + carrier=3D1 > + for _if in ${dhcp_interfaces}; do > + output=3D`/sbin/ifconfig ${_if}` > + nocarrier=3D`expr "${output}" : '.*[[:blank:]]status: \(no carrier\)'` > + [ -z "${nocarrier}" ] && carrier=3D0 > + done > + return ${carrier} > +} > + > defaultroute_start() > { > - local output carrier nocarrier nl > + local nl waited > =20 > afexists inet || return 0 > =20 > @@ -26,35 +40,30 @@ > # if none of the dhcp interfaces is plugged in. > dhcp_interfaces=3D`list_net_interfaces dhcp` > [ -z "${dhcp_interfaces}" ] && return > - carrier=3Dfalse > - for _if in ${dhcp_interfaces}; do > - output=3D`/sbin/ifconfig ${_if}` > - nocarrier=3D`expr "${output}" : '.*[[:blank:]]status: \(no carrier\)'` > - [ -z "${nocarrier}" ] && carrier=3Dtrue > - done > - if ! ${carrier}; then > - return > - fi > =20 > # Wait for a default route > - delay=3D${defaultroute_delay} > - while [ ${delay} -gt 0 ]; do > + waited=3D0 > + while [ ${waited} -lt ${defaultroute_delay} ]; do > defif=3D`get_default_if -inet` > if [ -n "${defif}" ]; then > - if [ ${delay} -ne ${defaultroute_delay} ]; then > + if [ ${waited} -ne 0 ]; then > echo -n "($defif)" > nl=3D1 > fi > break > fi > - if [ ${delay} -eq ${defaultroute_delay} ]; then > - echo -n "Waiting ${delay}s for the default route interface: " > + if [ ${waited} -eq 0 ]; then > + echo -n "Waiting ${defaultroute_delay}s for the default route interfa= ce: " > else > echo -n . > fi > + if [ ${waited} -eq ${defaultroute_carrier_delay} ] && ! defaultroute_c= arrier; then > + echo -n "(no carrier)" > + break > + fi > nl=3D1 > sleep 1 > - delay=3D$(($delay - 1)) > + waited=3D$(($waited + 1)) > done > =20 > [ -n "$nl" ] && echo > _______________________________________________ > freebsd-rc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-rc > To unsubscribe, send any mail to "freebsd-rc-unsubscribe@freebsd.org" --o71xDhNo7p97+qVi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iD8DBQFMnj/oXY6L6fI4GtQRAgcHAKCo8GkQoMu8H5NvSjC/55OVrVz6fQCg1y1y yhCyGtx6uiIdYyass//u5wo= =7e3P -----END PGP SIGNATURE----- --o71xDhNo7p97+qVi--