routeros-scripts-main/global-wait.rsc

14 lines
445 B
Text
Raw Normal View History

#!rsc by RouterOS
# RouterOS script: global-wait
2025-01-02 00:04:06 +01:00
# 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; };