1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

global-functions: introduce $WaitTimeSync

This commit is contained in:
Christian Hesse
2020-02-24 11:36:36 +01:00
parent 2a80fd6dbe
commit 5fab77abad

View File

@ -36,6 +36,7 @@
:global ScriptInstallUpdate;
:global MailServerIsUp;
:global TimeIsSync;
:global WaitTimeSync;
# url encoding
:set UrlEncode do={
@ -474,3 +475,12 @@
:return false;
}
# wait for time to become synced
:set WaitTimeSync do={
:global TimeIsSync;
:while ([ $TimeIsSync ] = false) do={
:delay 1s;
}
}