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
commit24b681761b3f29b30fcaf0672f293c77972931b1 (patch)
treed047dfba2a4d9db7f01f8d7cbd4145fb045c8a08
parent6e54c7c30be20d027065ffc35e852cf9383d11b7 (diff)
telegram-chat: use :jobname to get script name
-rw-r--r--telegram-chat.rsc4
1 files changed, 3 insertions, 1 deletions
diff --git a/telegram-chat.rsc b/telegram-chat.rsc
index 986df03..d8f917b 100644
--- a/telegram-chat.rsc
+++ b/telegram-chat.rsc
@@ -3,10 +3,12 @@
# Copyright (c) 2023-2024 Christian Hesse <mail@eworm.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
+# requires RouterOS, version=7.12
+#
# use Telegram to chat with your Router and send commands
# https://git.eworm.de/cgit/routeros-scripts/about/doc/telegram-chat.md
-:local 0 "telegram-chat";
+:local 0 [ :jobname ];
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }