mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-19 21:01:20 +01:00
Fix issues with 'gawk'
This commit is contained in:
parent
afed909e52
commit
a1bd664447
@ -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; };'
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -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; };'
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user