Use is_wired_interface() instead of hard-coded interface device

names.

Pointed out by:	sam
This commit is contained in:
hrs 2009-09-12 23:00:01 +00:00
parent f4069c2658
commit c7e7ae7852

View File

@ -9,6 +9,7 @@
# KEYWORD: nojail shutdown # KEYWORD: nojail shutdown
. /etc/rc.subr . /etc/rc.subr
. /etc/network.subr
name="rtadvd" name="rtadvd"
rcvar=`set_rcvar` rcvar=`set_rcvar`
@ -42,29 +43,9 @@ rtadvd_precmd()
case ${rtadvd_interfaces} in case ${rtadvd_interfaces} in
[Aa][Uu][Tt][Oo]|'') [Aa][Uu][Tt][Oo]|'')
for i in `ifconfig -l` ; do for i in `ifconfig -l` ; do
case $i in if is_wired_interface $1; then
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
;;
*)
rtadvd_interfaces="${rtadvd_interfaces} ${i}" rtadvd_interfaces="${rtadvd_interfaces} ${i}"
;; fi
esac
done done
;; ;;
esac esac