xref: /freebsd/libexec/rc/rc.d/rtsold (revision 397e83df75e0fcd0d3fcb95ae4d794cb7600fc89)
1#!/bin/sh
2#
3#
4
5# PROVIDE: rtsold
6# REQUIRE: netif
7# BEFORE: NETWORKING
8# KEYWORD: nojailvnet shutdown
9
10. /etc/rc.subr
11
12name="rtsold"
13desc="Router solicitation daemon"
14rcvar="rtsold_enable"
15command="/usr/sbin/${name}"
16pidfile="/var/run/${name}.pid"
17start_postcmd="rtsold_poststart"
18
19: ${rtsold_svcj_options:="net_basic"}
20
21rtsold_poststart()
22{
23	# wait for DAD
24	sleep $(($(${SYSCTL_N} net.inet6.ip6.dad_count) + 1))
25}
26
27load_rc_config $name
28run_rc_command "$1"
29