summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2014-08-30 07:08:10 +0000
committerhrs <hrs@FreeBSD.org>2014-08-30 07:08:10 +0000
commitc27f28026935d1ee3cc82aacd01b1dc04682ec15 (patch)
tree53da1af6ef486a0ca6002ecd27a11505587144a0 /etc/rc.d
parent4cf719a9ee69df9bc4f27f36aead3563d782ad41 (diff)
downloadFreeBSD-src-c27f28026935d1ee3cc82aacd01b1dc04682ec15.zip
FreeBSD-src-c27f28026935d1ee3cc82aacd01b1dc04682ec15.tar.gz
Use ipv6_prefer when at least one ifconfig_IF_ipv6 is configured.
Discussed on: -net@
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/ip6addrctl2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/rc.d/ip6addrctl b/etc/rc.d/ip6addrctl
index a7aa90c..8b7486f 100755
--- a/etc/rc.d/ip6addrctl
+++ b/etc/rc.d/ip6addrctl
@@ -75,6 +75,8 @@ ip6addrctl_start()
else
if checkyesno ipv6_activate_all_interfaces; then
ip6addrctl_prefer_ipv6
+ elif [ -n "$(list_vars ifconfig_\*_ipv6)" ]; then
+ ip6addrctl_prefer_ipv6
else
ip6addrctl_prefer_ipv4
fi
OpenPOWER on IntegriCloud