From b9673d4be66dc542936821d6303741fa77d65a03 Mon Sep 17 00:00:00 2001 From: Hiroki Sato Date: Thu, 9 Oct 2014 23:40:08 +0000 Subject: [PATCH] MFC r270836: Use ipv6_prefer when at least one ifconfig_IF_ipv6 is configured. --- etc/rc.d/ip6addrctl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/rc.d/ip6addrctl b/etc/rc.d/ip6addrctl index a7aa90c91473..8b7486feef01 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