added module (un)load to wshaper
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10570 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
845353f7b7
commit
ed97cabd65
@ -5,6 +5,7 @@
|
|||||||
# Set the following values to somewhat less than your actual download
|
# Set the following values to somewhat less than your actual download
|
||||||
# and uplink speed. In kilobits. Also set the device that is to be shaped.
|
# and uplink speed. In kilobits. Also set the device that is to be shaped.
|
||||||
|
|
||||||
|
MODULES='sch_ingress sch_sfq sch_htb cls_u32'
|
||||||
DOWNLINK=2000
|
DOWNLINK=2000
|
||||||
UPLINK=240
|
UPLINK=240
|
||||||
DEV=eth0
|
DEV=eth0
|
||||||
@ -29,10 +30,23 @@ then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# clean existing down- and uplink qdiscs, hide errors
|
# clean existing down- and uplink qdiscs, hide errors
|
||||||
tc qdisc del dev $DEV root 2> /dev/null > /dev/null
|
tc qdisc del dev $DEV root 2> /dev/null > /dev/null
|
||||||
tc qdisc del dev $DEV ingress 2> /dev/null > /dev/null
|
tc qdisc del dev $DEV ingress 2> /dev/null > /dev/null
|
||||||
|
|
||||||
|
if [ "$1" = "stop" ]
|
||||||
|
then
|
||||||
|
for i in $MODULES ; do
|
||||||
|
rmmod $i
|
||||||
|
done
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
for i in $MODULES ; do
|
||||||
|
insmod $i
|
||||||
|
done
|
||||||
|
|
||||||
###### uplink
|
###### uplink
|
||||||
|
|
||||||
# install root HTB, point default traffic to 1:20:
|
# install root HTB, point default traffic to 1:20:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user