summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2009-09-12 23:00:01 +0000
committerhrs <hrs@FreeBSD.org>2009-09-12 23:00:01 +0000
commitc7e7ae7852f8814cb4bed68e9c728173141b50af (patch)
tree84e2f4126d62ba54e74fe1c1533afb139b9edfad /etc
parentf4069c2658209d02170d135eafe722cb29f0239c (diff)
downloadFreeBSD-src-c7e7ae7852f8814cb4bed68e9c728173141b50af.zip
FreeBSD-src-c7e7ae7852f8814cb4bed68e9c728173141b50af.tar.gz
Use is_wired_interface() instead of hard-coded interface device
names. Pointed out by: sam
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/rtadvd25
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
OpenPOWER on IntegriCloud