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