git: rc.d/ip6addrctl: Fix REQUIRE and afexists()

Aaron LI aly at crater.dragonflybsd.org
Thu Nov 15 19:10:09 PST 2018


commit 21b2a002cbc71afb02226ebae808b0c58a793a7c
Author: Aaron LI <aly at aaronly.me>
Date:   Fri Nov 16 11:01:28 2018 +0800

    rc.d/ip6addrctl: Fix REQUIRE and afexists()
    
    * DragonFly doesn't has the 'FILESYSTEMS' rc target.
    
    * I forgot to implement the 'afexists()' function when import this.
      However, FreeBSD's 'afexists()' relies 'kern.features.<feature>'
      sysctls to determine whether the address family is supported, but
      DragonFly doesn't allow this.  So come up with a little 'has_inet6()'
      function for this rc script use only.
    
    Reported-by: Thomas Nikolajsen <thomas.nikolajsen at mail.dk>

Summary of changes:
 etc/rc.d/ip6addrctl | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/21b2a002cbc71afb02226ebae808b0c58a793a7c


-- 
DragonFly BSD source repository



More information about the Commits mailing list