mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 19:01:19 +01:00
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:
parent
6f8f080767
commit
d3f566977c
@ -44,7 +44,7 @@ setup_traffic_shaping()
|
|||||||
local rateunit rate
|
local rateunit rate
|
||||||
rate=$1
|
rate=$1
|
||||||
rateunit=$( echo $rate | sed -e 's/[0-9]*//')
|
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
|
case $rateunit in
|
||||||
kbit|Kbit)
|
kbit|Kbit)
|
||||||
|
Loading…
Reference in New Issue
Block a user