aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/ip6addrctl
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2014-08-30 07:08:10 +0000
committerHiroki Sato <hrs@FreeBSD.org>2014-08-30 07:08:10 +0000
commitcec7c03d34f3854825e82416cb1934176ab0ff02 (patch)
tree53da1af6ef486a0ca6002ecd27a11505587144a0 /etc/rc.d/ip6addrctl
parent6662ce5aab9c7549ae7f26698612cc9c855823d8 (diff)
downloadsrc-cec7c03d34f3854825e82416cb1934176ab0ff02.tar.gz
src-cec7c03d34f3854825e82416cb1934176ab0ff02.zip
Use ipv6_prefer when at least one ifconfig_IF_ipv6 is configured.
Discussed on: -net@
Notes
Notes: svn path=/head/; revision=270836
Diffstat (limited to 'etc/rc.d/ip6addrctl')
-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 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