Avoid unnecessary change in the generated script

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-11-19 21:39:49 -08:00
parent 8b99fe20b5
commit bb5c3a50f5
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -1512,7 +1512,7 @@ sub finish_providers() {
emit ( 'if [ -n "$DEFAULT_ROUTE" ]; then' );
if ( $family == F_IPV4 ) {
emit ( " run_ip -4 route replace default scope global table $table \$DEFAULT_ROUTE" );
emit ( " run_ip route replace default scope global table $table \$DEFAULT_ROUTE" );
} else {
emit ( " if echo \$DEFAULT_ROUTE | grep -q 'nexthop.+nexthop'; then",
" qt \$IP -6 route delete default scope global table $table \$DEFAULT_ROUTE",