xref: /freebsd/libexec/rc/rc.d/rtsold (revision 22d7dd834bc5cd189810e414701e3ad1e98102e4)
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
19rtsold_poststart()
20{
21	# wait for DAD
22	sleep $(($(${SYSCTL_N} net.inet6.ip6.dad_count) + 1))
23}
24
25load_rc_config $name
26run_rc_command "$1"
27