rc.d/ip6addrctl: Fix REQUIRE and afexists()
authorAaron LI <aly@aaronly.me>
Fri, 16 Nov 2018 03:01:28 +0000 (11:01 +0800)
committerAaron LI <aly@aaronly.me>
Fri, 16 Nov 2018 03:01:28 +0000 (11:01 +0800)
commit21b2a002cbc71afb02226ebae808b0c58a793a7c
tree85699d2febfcad6a0d26a629b2f6e7a12c56a6fd
parent54467ef985414d8d25436af585653758456ce7df
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@mail.dk>
etc/rc.d/ip6addrctl