#!rsc by RouterOS
# RouterOS script: global-wait

:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={
  :delay 500ms;
}

:global LogPrintExit2;

$LogPrintExit2 warning "global-wait" ("This script is now useless, please remove it from configuration.") true;