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