OpenWrtScripts/TestScripts/sqm.sh
Rich Brown a300093954 Update README (+2 squashed commits)
Squashed commits:
[7b35b92] Updated config-openwrt.sh to configure root password, eth0 for PPPoE, update software packages, set time zone, enable SNMP, enable mDNS, and set SQM
[1af1a51] Updated config-openwrt.sh to do basic configuration; added test scripts for installing snmpd and sqm
2015-04-29 01:01:45 -04:00

15 lines
No EOL
535 B
Bash

DOWNLOADSPEED=8264
UPLOADSPEED=911
WANIF=eth0
echo 'Setting SQM to' $DOWNLOADSPEED/$UPLOADSPEED 'kbps down/up'
uci set sqm.@queue[0].interface=$WANIF
uci set sqm.@queue[0].enabled=1
uci set sqm.@queue[0].download=$DOWNLOADSPEED
uci set sqm.@queue[0].upload=$UPLOADSPEED
uci set sqm.@queue[0].script='simple.qos' # Already the default
uci set sqm.@queue[0].qdisc='fq_codel'
uci set sqm.@queue[0].itarget='auto'
uci set sqm.@queue[0].etarget='auto'
uci set sqm.@queue[0].linklayer='atm'
uci set sqm.@queue[0].overhead='44'
uci commit sqm