xref: /freebsd/libexec/rc/rc.d/dnctl (revision 401ab69cff8fa2320a9f8ea4baa114a6da6c952b)
1#!/bin/sh
2#
3#
4
5# PROVIDE: dnctl
6# BEFORE: pf ipfw
7# KEYWORD: nojailvnet
8
9. /etc/rc.subr
10
11name="dnctl"
12desc="Dummynet packet queuing and scheduling"
13rcvar="${name}_enable"
14load_rc_config $name
15start_cmd="${name}_start"
16required_files="$dnctl_rules"
17required_modules="dummynet"
18
19dnctl_start()
20{
21	startmsg -n "Enabling ${name}"
22	$dnctl_program "$dnctl_rules"
23	startmsg '.'
24}
25
26run_rc_command $*
27