summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2012-02-04 18:14:49 +0000
committerhrs <hrs@FreeBSD.org>2012-02-04 18:14:49 +0000
commit53ca0b362a201d78060075f97a877def5939e45e (patch)
tree683088b6d173ca03a939382c91cd043f56b6bc0c /etc
parentd6c0a587a3637af0baaf4298e7e80cbd7a522d9b (diff)
downloadFreeBSD-src-53ca0b362a201d78060075f97a877def5939e45e.zip
FreeBSD-src-53ca0b362a201d78060075f97a877def5939e45e.tar.gz
Fix $ipv6_network_interfaces handling in rc.d/routing. It could fail when
it was set to "auto", for example. MFC after: 3 days
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/routing6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/rc.d/routing b/etc/rc.d/routing
index 616a19c..ec90e8d 100755
--- a/etc/rc.d/routing
+++ b/etc/rc.d/routing
@@ -98,8 +98,10 @@ routing_stop_inet6()
local i
route -n flush -inet6
- for i in ${ipv6_network_interfaces}; do
- ifconfig $i inet6 -defaultif
+ for i in `list_net_interfaces`; do
+ if ipv6if $i; then
+ ifconfig $i inet6 -defaultif
+ fi
done
}
OpenPOWER on IntegriCloud