aboutsummaryrefslogtreecommitdiffstats
path: root/ppp-on-up.rsc
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
commit791b04bbe4deefe51274eea010465c9805637910 (patch)
tree986e039688e0bf349dfdab9bc4f1cf5c5146c31b /ppp-on-up.rsc
parent322466fd00c54410f34f1f370b038ba182cf3833 (diff)
ppp-on-up: use :jobname to get script name
Diffstat (limited to 'ppp-on-up.rsc')
-rw-r--r--ppp-on-up.rsc4
1 files changed, 3 insertions, 1 deletions
diff --git a/ppp-on-up.rsc b/ppp-on-up.rsc
index ad19fc6..ad09fdc 100644
--- a/ppp-on-up.rsc
+++ b/ppp-on-up.rsc
@@ -3,10 +3,12 @@
# Copyright (c) 2013-2024 Christian Hesse <mail@eworm.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
+# requires RouterOS, version=7.12
+#
# run scripts on ppp up
# https://git.eworm.de/cgit/routeros-scripts/about/doc/ppp-on-up.md
-:local 0 "ppp-on-up";
+:local 0 [ :jobname ];
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }