#!/bin/sh # # # PROVIDE: dummynet # BEFORE: pf ipfw # KEYWORD: nojailvnet . /etc/rc.subr name="dummynet" desc="Dummynet packet queuing and scheduling" rcvar="${name}_enable" load_rc_config $name start_cmd="${name}_start" required_files="$dummynet_rules" required_modules="dummynet" dummynet_start() { startmsg -n "Enabling ${name}" cat "$dnctl_rules" | while read l; do dnctl $l done startmsg '.' } run_rc_command $*