aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-12 15:19:42 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-12 15:27:14 +0100
commitd46156ad92322ffda1c7769d8eb9ea2b9fab6015 (patch)
tree4ff75702cc28b3920a8c6d85274da0b78781be91 /global-functions.rsc
parent771ca341b040fdf1a6dc9828deec16bbbe42d797 (diff)
global-functions: use variable name $ScriptName
Diffstat (limited to 'global-functions.rsc')
-rw-r--r--global-functions.rsc4
1 files changed, 2 insertions, 2 deletions
diff --git a/global-functions.rsc b/global-functions.rsc
index 92fabff..90148f8 100644
--- a/global-functions.rsc
+++ b/global-functions.rsc
@@ -9,7 +9,7 @@
# global functions
# https://git.eworm.de/cgit/routeros-scripts/about/
-:local 0 [ :jobname ];
+:local ScriptName [ :jobname ];
# expected configuration version
:global ExpectedConfigVersion 119;
@@ -1534,7 +1534,7 @@
# Log success
:local Resource [ /system/resource/get ];
-$LogPrintOnce info $0 ("Loaded on " . $Resource->"board-name" . \
+$LogPrintOnce info $ScriptName ("Loaded on " . $Resource->"board-name" . \
" with RouterOS " . $Resource->"version" . ".") false;
# signal we are ready