mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-03-05 05:29:37 +00:00
13 lines
445 B
Text
13 lines
445 B
Text
#!rsc by RouterOS
|
|
# RouterOS script: global-wait
|
|
# Copyright (c) 2020-2025 Christian Hesse <mail@eworm.de>
|
|
# https://rsc.eworm.de/COPYING.md
|
|
#
|
|
# requires RouterOS, version=7.15
|
|
#
|
|
# wait for global-functions to finish
|
|
# https://rsc.eworm.de/doc/global-wait.md
|
|
|
|
:global GlobalFunctionsReady;
|
|
:onerror e { :retry { :if ($GlobalFunctionsReady != true) \
|
|
do={ :error "Global functions not ready."; }; } delay=500ms max=20; } do={ :log error $e; };
|