Fix issues with 'gawk'

This commit is contained in:
Tom Eastep 2011-05-07 09:21:37 -07:00
parent afed909e52
commit a1bd664447
2 changed files with 8 additions and 8 deletions

View File

@ -509,10 +509,10 @@ undo_routing() {
# #
save_default_route() { save_default_route() {
awk \ awk \
'BEGIN {default=0;}; \ 'BEGIN {defroute=0;};
/^default / {default=1; print; next}; \ /^default / {deroute=1; print; next};
/nexthop/ {if (default == 1 ) {print ; next} }; \ /nexthop/ {if (defroute == 1 ) {print ; next} };
{ default=0; };' { defroute=0; };'
} }
# #

View File

@ -497,10 +497,10 @@ undo_routing() {
# #
save_default_route() { save_default_route() {
awk \ awk \
'BEGIN {default=0;}; \ 'BEGIN {defroute=0;};
/^default / {default=1; print; next}; \ /^default / {defroute=1; print; next};
/nexthop/ {if (default == 1 ) {print ; next} }; \ /nexthop/ {if (defroute == 1 ) {print ; next} };
{ default=0; };' { defroute=0; };'
} }
# #