xref: /freebsd/libexec/rc/rc.d/dnctl (revision 783d3ff6d7fae619db8a7990b8a6387de0c677b5)
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