]> git.stg.codes - stg.git/blob - stargazer/scripts/shaper/shaper.sh
Port to CMake, get rid of os_int.h.
[stg.git] / stargazer / scripts / shaper / shaper.sh
1 #!/bin/bash
2
3 int_iface=eth1
4
5 iptables -t mangle --flush
6
7 tc qdisc add dev $int_iface root handle 1: htb
8 tc class add dev $int_iface parent 1: classid 1:1 htb rate 100mbit ceil 100mbit burst 200k
9