forked from extern/shorewall_code
Correct sed invocation in add_gateway()
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
a63d4dad44
commit
46d9faa63a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user