aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-11-15 21:31:19 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-01-30 00:52:21 +0100
commit45fda69d3be56ba7d7b320125a9d2613ff7a1b0f (patch)
treeeabc734f27106e6eb378c0edcc03779fbe235d89
parent80f587ddb555267bfe5f4344dc4e10cc268e2bc3 (diff)
netwatch-notify: use :jobname to get script name
-rw-r--r--netwatch-notify.rsc4
1 files changed, 3 insertions, 1 deletions
diff --git a/netwatch-notify.rsc b/netwatch-notify.rsc
index 2586c09..ae9c8a8 100644
--- a/netwatch-notify.rsc
+++ b/netwatch-notify.rsc
@@ -3,10 +3,12 @@
# Copyright (c) 2020-2024 Christian Hesse <mail@eworm.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
+# requires RouterOS, version=7.12
+#
# monitor netwatch and send notifications
# https://git.eworm.de/cgit/routeros-scripts/about/doc/netwatch-notify.md
-:local 0 "netwatch-notify";
+:local 0 [ :jobname ];
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }