diff --git a/Shorewall/Perl/prog.header b/Shorewall/Perl/prog.header index 425b7c546..b4148426f 100644 --- a/Shorewall/Perl/prog.header +++ b/Shorewall/Perl/prog.header @@ -509,10 +509,10 @@ undo_routing() { # save_default_route() { awk \ - 'BEGIN {default=0;}; \ - /^default / {default=1; print; next}; \ - /nexthop/ {if (default == 1 ) {print ; next} }; \ - { default=0; };' + 'BEGIN {defroute=0;}; + /^default / {deroute=1; print; next}; + /nexthop/ {if (defroute == 1 ) {print ; next} }; + { defroute=0; };' } # diff --git a/Shorewall/Perl/prog.header6 b/Shorewall/Perl/prog.header6 index 8cf782756..c36e78b1b 100644 --- a/Shorewall/Perl/prog.header6 +++ b/Shorewall/Perl/prog.header6 @@ -497,10 +497,10 @@ undo_routing() { # save_default_route() { awk \ - 'BEGIN {default=0;}; \ - /^default / {default=1; print; next}; \ - /nexthop/ {if (default == 1 ) {print ; next} }; \ - { default=0; };' + 'BEGIN {defroute=0;}; + /^default / {defroute=1; print; next}; + /nexthop/ {if (defroute == 1 ) {print ; next} }; + { defroute=0; };' } #