...I've used OpenWRT as well and am familiar with their scripted implementation to quickly get an AQM up and running....
ipfw sched 1 config pipe 1 type fq_codel && ipfw sched 2 config pipe 2 type fq_codel
tc qdisc add dev eth0 root fq_codel
...Not sure if this answers your question or not?...