-diff -Nur wondershaper-1.1a/wshaper wondershaper-1.1a_openwrt/wshaper
---- wondershaper-1.1a/wshaper 2002-04-16 16:26:35.000000000 +0200
-+++ wondershaper-1.1a_openwrt/wshaper 2005-09-09 00:46:22.095406568 +0200
-@@ -1,33 +1,7 @@
--#!/bin/bash
--
-+#!/bin/sh
- # Wonder Shaper
--# please read the README before filling out these values
--#
--# 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.
--DOWNLINK=800
--UPLINK=220
--DEV=eth0
--
--# low priority OUTGOING traffic - you can leave this blank if you want
--# low priority source netmasks
--NOPRIOHOSTSRC=80
--
--# low priority destination netmasks
--NOPRIOHOSTDST=
--
--# low priority source ports
--NOPRIOPORTSRC=
--
--# low priority destination ports
--NOPRIOPORTDST=
--
--# Now remove the following two lines :-)
--
--echo Please read the documentation in 'README' first :-\)
--exit
--
--#########################################################
-+. /etc/functions.sh
-+. /etc/wshaper.conf
-
- if [ "$1" = "status" ]
- then
-@@ -46,6 +20,8 @@
- exit
- fi
-
-+
-+
- ###### uplink
-
- # install root CBQ
-@@ -67,12 +43,12 @@
- # bulk and default class 1:20 - gets slightly less traffic,
- # and a lower priority:
-
--tc class add dev $DEV parent 1:1 classid 1:20 cbq rate $[9*$UPLINK/10]kbit \
-+tc class add dev $DEV parent 1:1 classid 1:20 cbq rate $((9*$UPLINK/10))kbit \
- allot 1600 prio 2 avpkt 1000
-
- # 'traffic we hate'
-
--tc class add dev $DEV parent 1:1 classid 1:30 cbq rate $[8*$UPLINK/10]kbit \
-+tc class add dev $DEV parent 1:1 classid 1:30 cbq rate $((8*$UPLINK/10))kbit \
- allot 1600 prio 2 avpkt 1000
-
- # all get Stochastic Fairness: