Correct sed invocation in add_gateway()

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-09-02 10:28:41 -07:00
parent a63d4dad44
commit 46d9faa63a

View File

@ -639,7 +639,7 @@ delete_gateway() # $! = Description of the Gateway $2 = table number
local gateway
local newroute
route=`$IP -4 -o route ls table $2 | grep ^default | sed 's/[\]//'`
route=`$IP -4 -o route ls table $2 | grep ^default | sed 's/[\]//g'`
gateway=$1
if [ -n "$route" ]; then