aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/ip6addrctl
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2003-10-30 17:55:52 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2003-10-30 17:55:52 +0000
commit2fa02b748e65d8fe8ecaaed1bf534153fb34cbb0 (patch)
tree81f485a504fd7a06f0c3b4dbaab50034a1fa8337 /etc/rc.d/ip6addrctl
parentf71d0e11929bc052c03973244193670c95f4845c (diff)
Notes
Diffstat (limited to 'etc/rc.d/ip6addrctl')
-rw-r--r--etc/rc.d/ip6addrctl33
1 files changed, 33 insertions, 0 deletions
diff --git a/etc/rc.d/ip6addrctl b/etc/rc.d/ip6addrctl
new file mode 100644
index 0000000000000..26b8365a5e668
--- /dev/null
+++ b/etc/rc.d/ip6addrctl
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: ip6addrctl
+# REQUIRE: mountcritlocal netif
+# BEFORE: network_ipv6
+# KEYWORD: FreeBSD
+
+. /etc/rc.subr
+. /etc/network.subr
+
+name="ip6addrctl"
+start_cmd="ip6addrctl_start"
+stop_cmd=':'
+
+ip6addrctl_start()
+{
+ if ifconfig lo0 inet6 >/dev/null 2>&1; then
+ # We have IPv6 support in kernel.
+
+ # 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
+ ip6addrctl
+ fi
+ fi
+}
+
+load_rc_config $name
+run_rc_command "$1"