xref: /freebsd/libexec/rc/rc.d/rtsold (revision cbb3ec25236ba72f91cbdf23f8b78b9d1af0cedf)
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