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