More tc config parsing improvements

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4734 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-10-25 22:07:13 +00:00
parent 6f8f080767
commit d3f566977c

View File

@ -44,7 +44,7 @@ setup_traffic_shaping()
local rateunit rate
rate=$1
rateunit=$( echo $rate | sed -e 's/[0-9]*//')
rate=$( echo $rate | sed -e 's/[a-zA-Z]*//g')
rate=$( echo $rate | sed -e 's/[a-z]*//gi')
case $rateunit in
kbit|Kbit)