git: rc.d: Add ip6addrctl (enabled by default with policy AUTO)

Thomas Nikolajsen thomas.nikolajsen at
Thu Nov 15 10:21:38 PST 2018

Hi Aaron,

etc/rc.d/ip6addrctl doesn't work, as afexists function needs to be implemented.

On FreeBSD it is implemented in etc/network.subr.
For this they use some sysctl node we dont't have, so it needs a little tweaking.
(my first guess was that you just forgot to commit etc/network.subr, but afexists isn't in your recent commit)

commit 03137732640d591d74a270e2e62930e966c5145f
Author: Aaron LI <aly at>
Date:   Tue Nov 6 04:25:17 2018 +0800

    rc.d: Add ip6addrctl (enabled by default with policy AUTO)
    Bring in the ip6addrctl rc script from FreeBSD.  It is enabled by
    default with policy "AUTO", so the IPv4/IP6 preference is configured on
    startup.  The rc variable "ip6addrctl_policy" is used to adjust the
    preference (AUTO, ipv6_prefer, ipv6_prefer).
    See the rc.conf(5) man page for more details.

Summary of changes:
 etc/defaults/rc.conf     |   8 +++-
 etc/rc.d/Makefile        |   2 +-
 etc/rc.d/ip6addrctl      | 111 +++++++++++++++++++++++++++++++++++++++++++++++
 share/man/man5/rc.conf.5 |  54 ++++++++++++++++++++++-
 4 files changed, 172 insertions(+), 3 deletions(-)
 create mode 100644 etc/rc.d/ip6addrctl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Commits mailing list