2010-02-03 16:18:42 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: rtsold
|
|
|
|
# REQUIRE: netif
|
|
|
|
# BEFORE: NETWORKING
|
2010-02-27 19:02:21 +00:00
|
|
|
# KEYWORD: nojail shutdown
|
2010-02-03 16:18:42 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="rtsold"
|
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"
|