11ffc369aSGoran Mekic#!/bin/sh 21ffc369aSGoran Mekic# 31ffc369aSGoran Mekic# 41ffc369aSGoran Mekic 51ffc369aSGoran Mekic# PROVIDE: dnctl 61ffc369aSGoran Mekic# BEFORE: pf ipfw 71ffc369aSGoran Mekic# KEYWORD: nojailvnet 81ffc369aSGoran Mekic 91ffc369aSGoran Mekic. /etc/rc.subr 101ffc369aSGoran Mekic 111ffc369aSGoran Mekicname="dnctl" 121ffc369aSGoran Mekicdesc="Dummynet packet queuing and scheduling" 131ffc369aSGoran Mekicrcvar="${name}_enable" 141ffc369aSGoran Mekicload_rc_config $name 151ffc369aSGoran Mekicstart_cmd="${name}_start" 161ffc369aSGoran Mekicrequired_files="$dnctl_rules" 171ffc369aSGoran Mekicrequired_modules="dummynet" 181ffc369aSGoran Mekic 19*f99f0ee1SAlexander Leidinger# doesn't make sense to run in a svcj: config setting 20*f99f0ee1SAlexander Leidingerdnctl_svcj="NO" 21*f99f0ee1SAlexander Leidinger 221ffc369aSGoran Mekicdnctl_start() 231ffc369aSGoran Mekic{ 241ffc369aSGoran Mekic startmsg -n "Enabling ${name}" 251ffc369aSGoran Mekic $dnctl_program "$dnctl_rules" 261ffc369aSGoran Mekic startmsg '.' 271ffc369aSGoran Mekic} 281ffc369aSGoran Mekic 291ffc369aSGoran Mekicrun_rc_command $* 30