aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-11-15 21:31:18 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-01-30 00:52:21 +0100
commit3f8d680fe8dfeea8d04ce6b67c74163306326b89 (patch)
treeb994cb4af67b9f9b250f754680a13d212eef13b0
parent02d8455a8709eb219b097bf1c0aed97495cfe92c (diff)
daily-psk.capsman: use :jobname to get script name
-rw-r--r--daily-psk.capsman.rsc4
-rw-r--r--daily-psk.local.rsc4
-rw-r--r--daily-psk.template.rsc4
-rw-r--r--daily-psk.wifi.rsc4
-rw-r--r--daily-psk.wifiwave2.rsc4
5 files changed, 15 insertions, 5 deletions
diff --git a/daily-psk.capsman.rsc b/daily-psk.capsman.rsc
index 2260588..f576d1d 100644
--- a/daily-psk.capsman.rsc
+++ b/daily-psk.capsman.rsc
@@ -4,12 +4,14 @@
# Michael Gisbers <michael@gisbers.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
+# requires RouterOS, version=7.12
+#
# update daily PSK (pre shared key)
# https://git.eworm.de/cgit/routeros-scripts/about/doc/daily-psk.md
#
# !! Do not edit this file, it is generated from template!
-:local 0 "daily-psk.capsman";
+:local 0 [ :jobname ];
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
diff --git a/daily-psk.local.rsc b/daily-psk.local.rsc
index 5478534..da12038 100644
--- a/daily-psk.local.rsc
+++ b/daily-psk.local.rsc
@@ -4,12 +4,14 @@
# Michael Gisbers <michael@gisbers.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
+# requires RouterOS, version=7.12
+#
# update daily PSK (pre shared key)
# https://git.eworm.de/cgit/routeros-scripts/about/doc/daily-psk.md
#
# !! Do not edit this file, it is generated from template!
-:local 0 "daily-psk.local";
+:local 0 [ :jobname ];
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
diff --git a/daily-psk.template.rsc b/daily-psk.template.rsc
index 1111b64..d1abce2 100644
--- a/daily-psk.template.rsc
+++ b/daily-psk.template.rsc
@@ -4,13 +4,15 @@
# Michael Gisbers <michael@gisbers.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
+# requires RouterOS, version=7.12
+#
# update daily PSK (pre shared key)
# https://git.eworm.de/cgit/routeros-scripts/about/doc/daily-psk.md
#
# !! This is just a template to generate the real script!
# !! Pattern '%TEMPL%' is replaced, paths are filtered.
-:local 0 "daily-psk%TEMPL%";
+:local 0 [ :jobname ];
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
diff --git a/daily-psk.wifi.rsc b/daily-psk.wifi.rsc
index 6a621e4..488d921 100644
--- a/daily-psk.wifi.rsc
+++ b/daily-psk.wifi.rsc
@@ -4,12 +4,14 @@
# Michael Gisbers <michael@gisbers.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
+# requires RouterOS, version=7.12
+#
# update daily PSK (pre shared key)
# https://git.eworm.de/cgit/routeros-scripts/about/doc/daily-psk.md
#
# !! Do not edit this file, it is generated from template!
-:local 0 "daily-psk.wifi";
+:local 0 [ :jobname ];
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
diff --git a/daily-psk.wifiwave2.rsc b/daily-psk.wifiwave2.rsc
index e769a6c..89c5c25 100644
--- a/daily-psk.wifiwave2.rsc
+++ b/daily-psk.wifiwave2.rsc
@@ -4,12 +4,14 @@
# Michael Gisbers <michael@gisbers.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
+# requires RouterOS, version=7.12
+#
# update daily PSK (pre shared key)
# https://git.eworm.de/cgit/routeros-scripts/about/doc/daily-psk.md
#
# !! Do not edit this file, it is generated from template!
-:local 0 "daily-psk.wifiwave2";
+:local 0 [ :jobname ];
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }