Deleted Added
full compact
3c3
< # $FreeBSD: head/etc/rc.d/ip6addrctl 197526 2009-09-26 18:59:00Z hrs $
---
> # $FreeBSD: head/etc/rc.d/ip6addrctl 197697 2009-10-02 02:24:25Z hrs $
11a12
> . /etc/network.subr
25a27,28
> afexists inet6 || return 0
>
36a40,41
> afexists inet6 || return 0
>
48,49c53
< if ifconfig lo0 inet6 >/dev/null 2>&1; then
< # We have IPv6 support in kernel.
---
> afexists inet6 || return 0
51,55c55,62
< # install the policy of the address selection algorithm.
< if [ -f /etc/ip6addrctl.conf ]; then
< ip6addrctl flush >/dev/null 2>&1
< ip6addrctl install /etc/ip6addrctl.conf
< checkyesno ip6addrctl_verbose && ip6addrctl
---
> # install the policy of the address selection algorithm.
> if [ -f /etc/ip6addrctl.conf ]; then
> ip6addrctl flush >/dev/null 2>&1
> ip6addrctl install /etc/ip6addrctl.conf
> checkyesno ip6addrctl_verbose && ip6addrctl
> else
> if checkyesno ipv6_prefer; then
> ip6addrctl_prefer_ipv6
57,61c64
< if checkyesno ipv6_prefer; then
< ip6addrctl_prefer_ipv6
< else
< ip6addrctl_prefer_ipv4
< fi
---
> ip6addrctl_prefer_ipv4
68,71c71,73
< if ifconfig lo0 inet6 >/dev/null 2>&1; then
< # We have IPv6 support in kernel.
< ip6addrctl flush >/dev/null 2>&1
< fi
---
> afexists inet6 || return 0
>
> ip6addrctl flush >/dev/null 2>&1