mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-03 09:44:33 +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 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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue