aboutsummaryrefslogtreecommitdiffstats
path: root/lease-script
diff options
context:
space:
mode:
Diffstat (limited to 'lease-script')
-rw-r--r--lease-script3
1 files changed, 3 insertions, 0 deletions
diff --git a/lease-script b/lease-script
index 438df0f..a39a874 100644
--- a/lease-script
+++ b/lease-script
@@ -6,6 +6,9 @@
# run scripts on DHCP lease
# https://git.eworm.de/cgit/routeros-scripts/about/doc/lease-script.md
+:global GlobalFunctionsReady;
+:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
+
:global LogPrintExit;
:if ([ :typeof $leaseActIP ] = "nothing" || \