mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
Use is_wired_interface() instead of hard-coded interface device
names. Pointed out by: sam
This commit is contained in:
parent
00303aec4d
commit
084a977959
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197146
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user