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