e60d067996
The rtsol(8) handles just one RA then exit. So, the OtherConfig flag may not be handled well by rtsol(8) in the environment where there are multiple RA servers on the segment. In such case, rtsold(8) will be your friend. Reviewed by: hrs MFC after: 2 weeks
27 lines
379 B
Bash
Executable File
27 lines
379 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: rtsold
|
|
# REQUIRE: netif
|
|
# BEFORE: NETWORKING
|
|
# KEYWORD: nojail
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="rtsold"
|
|
rcvar=`set_rcvar`
|
|
command="/usr/sbin/${name}"
|
|
pidfile="/var/run/${name}.pid"
|
|
start_postcmd="rtsold_poststart"
|
|
|
|
rtsold_poststart()
|
|
{
|
|
# wait for DAD
|
|
sleep $(($(${SYSCTL_N} net.inet6.ip6.dad_count) + 1))
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|