2010-02-03 16:18:42 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: rtsold
|
|
|
|
# REQUIRE: netif
|
|
|
|
# BEFORE: NETWORKING
|
2017-07-08 09:28:31 +00:00
|
|
|
# KEYWORD: nojailvnet shutdown
|
2010-02-03 16:18:42 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="rtsold"
|
2016-04-23 16:10:54 +00:00
|
|
|
desc="Router solicitation daemon"
|
2012-01-14 02:18:41 +00:00
|
|
|
rcvar="rtsold_enable"
|
2010-02-03 16:18:42 +00:00
|
|
|
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"
|