diff options
author | Christian Hesse <mail@eworm.de> | 2023-11-15 21:31:18 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-01-30 00:52:21 +0100 |
commit | 5d40075e442993ad2bed2f646b91bfa987906469 (patch) | |
tree | 8710381244c9b340a3195da0c5a81f380aa835ae /mode-button.rsc | |
parent | 4653c94f3f735d439b9ce9448644392aaa41a48b (diff) |
mode-button: use :jobname to get script name
Diffstat (limited to 'mode-button.rsc')
-rw-r--r-- | mode-button.rsc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mode-button.rsc b/mode-button.rsc index 3c3e37e..372b2de 100644 --- a/mode-button.rsc +++ b/mode-button.rsc @@ -3,10 +3,12 @@ # Copyright (c) 2018-2024 Christian Hesse <mail@eworm.de> # https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md # +# requires RouterOS, version=7.12 +# # act on multiple mode and reset button presses # https://git.eworm.de/cgit/routeros-scripts/about/doc/mode-button.md -:local 0 "mode-button"; +:local 0 [ :jobname ]; :global GlobalFunctionsReady; :while ($GlobalFunctionsReady != true) do={ :delay 500ms; } |