aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-03-12 08:40:29 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-03-12 08:40:29 +0100
commit98585afe1cc068203e5d713eb9965c930ac762de (patch)
tree9faee0f709c3f69b2456f561d3ea3f89191a14fb /global-functions
parent63ed093340df70c79ecec21396d136a03d869eca (diff)
add script 'global-wait'
Run this in schedulers that fire on startup without interval. Schedulers should look something like this: / system scheduler { add name=global-scripts on-event="/ system script { run global-config; run global-config-overlay; run global-functions; }" start-time=startup; add name=bridge-port-to-default on-event="/ system script { run global-wait; run bridge-port-to-default; }" start-time=startup; }
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index be7a7ba..eda9ab6 100644
--- a/global-functions
+++ b/global-functions
@@ -9,6 +9,7 @@
:global ExpectedConfigVersion 13;
# global variables not to be changed by user
+:global GlobalFunctionsReady false;
:global Identity [ / system identity get name ];
:global SentConfigChangesNotification "-";
:global SentLteFirmwareUpgradeNotification "-";
@@ -524,3 +525,6 @@
:delay 1s;
}
}
+
+# signal we are ready
+:set GlobalFunctionsReady true;