diff options
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.d/rtadvd | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/etc/rc.d/rtadvd b/etc/rc.d/rtadvd index eadf9ba..dbf4be2 100755 --- a/etc/rc.d/rtadvd +++ b/etc/rc.d/rtadvd @@ -9,6 +9,7 @@ # KEYWORD: nojail shutdown . /etc/rc.subr +. /etc/network.subr name="rtadvd" rcvar=`set_rcvar` @@ -42,29 +43,9 @@ rtadvd_precmd() case ${rtadvd_interfaces} in [Aa][Uu][Tt][Oo]|'') for i in `ifconfig -l` ; do - case $i in - 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 - ;; - *) + if is_wired_interface $1; then rtadvd_interfaces="${rtadvd_interfaces} ${i}" - ;; - esac + fi done ;; esac |