mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-28 05:54:54 +02:00
global-functions: introduce $WaitTimeSync
This commit is contained in:
parent
2a80fd6dbe
commit
5fab77abad
1 changed files with 10 additions and 0 deletions
|
@ -36,6 +36,7 @@
|
||||||
:global ScriptInstallUpdate;
|
:global ScriptInstallUpdate;
|
||||||
:global MailServerIsUp;
|
:global MailServerIsUp;
|
||||||
:global TimeIsSync;
|
:global TimeIsSync;
|
||||||
|
:global WaitTimeSync;
|
||||||
|
|
||||||
# url encoding
|
# url encoding
|
||||||
:set UrlEncode do={
|
:set UrlEncode do={
|
||||||
|
@ -474,3 +475,12 @@
|
||||||
|
|
||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# wait for time to become synced
|
||||||
|
:set WaitTimeSync do={
|
||||||
|
:global TimeIsSync;
|
||||||
|
|
||||||
|
:while ([ $TimeIsSync ] = false) do={
|
||||||
|
:delay 1s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue