aboutsummaryrefslogtreecommitdiffstats
path: root/update-gre-address
diff options
context:
space:
mode:
Diffstat (limited to 'update-gre-address')
-rw-r--r--update-gre-address3
1 files changed, 3 insertions, 0 deletions
diff --git a/update-gre-address b/update-gre-address
index 7dd4896..50d1373 100644
--- a/update-gre-address
+++ b/update-gre-address
@@ -7,6 +7,9 @@
# ipsec remote peer
# https://git.eworm.de/cgit/routeros-scripts/about/doc/update-gre-address.md
+:global GlobalFunctionsReady;
+:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
+
:global LogPrintExit;
/ interface gre set remote-address=0.0.0.0 disabled=yes [ find where !running !disabled ];