Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Sep 2009 15:26:25 -0700
From:      Sam Leffler <sam@errno.com>
To:        Hiroki Sato <hrs@FreeBSD.org>
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: svn commit: r197140 - head/etc/rc.d
Message-ID:  <4AAC2011.1010308@errno.com>
In-Reply-To: <200909122214.n8CMEL8F098946@svn.freebsd.org>
References:  <200909122214.n8CMEL8F098946@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hiroki Sato wrote:
> Author: hrs
> Date: Sat Sep 12 22:14:21 2009
> New Revision: 197140
> URL: http://svn.freebsd.org/changeset/base/197140
> 
> Log:
>   - Add "AUTO" keyword support in $rtadvd_interfaces.
>   - Wrap a long line.
>   
>   MFC after:	3 days
> 
> Modified:
>   head/etc/rc.d/rtadvd
> 
> Modified: head/etc/rc.d/rtadvd
> ==============================================================================
> --- head/etc/rc.d/rtadvd	Sat Sep 12 22:13:41 2009	(r197139)
> +++ head/etc/rc.d/rtadvd	Sat Sep 12 22:14:21 2009	(r197140)
> @@ -40,10 +40,25 @@ rtadvd_precmd()
>  	# get a list of interfaces and enable it on them
>  	#
>  	case ${rtadvd_interfaces} in
> -	'')
> +	[Aa][Uu][Tt][Oo]|'')
>  		for i in `ifconfig -l` ; do
>  			case $i in
> -			lo0|gif[0-9]*|stf[0-9]*|faith[0-9]*|lp[0-9]*|sl[0-9]*|tun[0-9]*)
> +			lo0|\
> +			stf[0-9]*|\
> +			faith[0-9]*|\
> +			lp[0-9]*|\
> +			sl[0-9]*|\
> +			pflog[0-9]*|\
> +			pfsync[0-9]*|\
> +			an[0-9]*|\
> +			ath[0-9]*|\
> +			ipw[0-9]*|\
> +			iwi[0-9]*|\
> +			iwn[0-9]*|\
> +			ral[0-9]*|\
> +			wi[0-9]*|\
> +			wl[0-9]*|\
> +			wpi[0-9]*)
>  				continue
>  				;;
>  			*)
> 
> 

You look to be enumerating wireless devices.  If so you should use the 
media type instead of device names.

	Sam



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AAC2011.1010308>