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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user