ip6addrctl revision 126744
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/ip6addrctl 126744 2004-03-08 12:25:05Z pjd $
4#
5
6# PROVIDE: ip6addrctl
7# REQUIRE: mountcritlocal netif
8# BEFORE: network_ipv6
9# KEYWORD: FreeBSD nojail
10
11. /etc/rc.subr
12. /etc/network.subr
13
14name="ip6addrctl"
15start_cmd="ip6addrctl_start"
16stop_cmd=':'
17
18ip6addrctl_start()
19{
20	if ifconfig lo0 inet6 >/dev/null 2>&1; then
21		# We have IPv6 support in kernel.
22
23		# install the policy of the address selection algorithm.
24		if [ -f /etc/ip6addrctl.conf ]; then
25			ip6addrctl flush >/dev/null 2>&1
26			ip6addrctl install /etc/ip6addrctl.conf
27			ip6addrctl
28		fi
29	fi
30}
31
32load_rc_config $name
33run_rc_command "$1"
34