aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-07-11 08:45:53 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-07-11 08:45:53 +0200
commit78dfc568c10332ea63cc26e39ccf165f3d384c9e (patch)
tree4bc9fafd8c039a168b77e4ae612f9809daf9cf10
parent35d3c058b83388b8e187bb53ff8c1e0d85c299b5 (diff)
capsman-{download-packages,rolling-upgrade}: run matching script
It is possible to run old and new CAPsMAN on one system simultaneously (... since RouterOS 7.13?). Thus it may make sense to have both variants of these scripts installed, and we have to make sure to run the correct one.
-rw-r--r--capsman-download-packages.capsman.rsc2
-rw-r--r--capsman-download-packages.template.rsc2
-rw-r--r--capsman-download-packages.wifi.rsc2
-rw-r--r--capsman-rolling-upgrade.capsman.rsc2
-rw-r--r--capsman-rolling-upgrade.template.rsc2
-rw-r--r--capsman-rolling-upgrade.wifi.rsc2
6 files changed, 6 insertions, 6 deletions
diff --git a/capsman-download-packages.capsman.rsc b/capsman-download-packages.capsman.rsc
index f5695f4..84d36f7 100644
--- a/capsman-download-packages.capsman.rsc
+++ b/capsman-download-packages.capsman.rsc
@@ -73,7 +73,7 @@
}
:if ($Updated = true) do={
- :local Script ([ /system/script/find where source~"\n# provides: capsman-rolling-upgrade\n" ]->0);
+ :local Script ([ /system/script/find where source~"\n# provides: capsman-rolling-upgrade.capsman\n" ]->0);
:if ([ :len $Script ] > 0) do={
/system/script/run $Script;
} else={
diff --git a/capsman-download-packages.template.rsc b/capsman-download-packages.template.rsc
index 762dbb6..deb15a7 100644
--- a/capsman-download-packages.template.rsc
+++ b/capsman-download-packages.template.rsc
@@ -83,7 +83,7 @@
}
:if ($Updated = true) do={
- :local Script ([ /system/script/find where source~"\n# provides: capsman-rolling-upgrade\n" ]->0);
+ :local Script ([ /system/script/find where source~"\n# provides: capsman-rolling-upgrade%TEMPL%\n" ]->0);
:if ([ :len $Script ] > 0) do={
/system/script/run $Script;
} else={
diff --git a/capsman-download-packages.wifi.rsc b/capsman-download-packages.wifi.rsc
index 79aa9a7..6147d21 100644
--- a/capsman-download-packages.wifi.rsc
+++ b/capsman-download-packages.wifi.rsc
@@ -75,7 +75,7 @@
}
:if ($Updated = true) do={
- :local Script ([ /system/script/find where source~"\n# provides: capsman-rolling-upgrade\n" ]->0);
+ :local Script ([ /system/script/find where source~"\n# provides: capsman-rolling-upgrade.wifi\n" ]->0);
:if ([ :len $Script ] > 0) do={
/system/script/run $Script;
} else={
diff --git a/capsman-rolling-upgrade.capsman.rsc b/capsman-rolling-upgrade.capsman.rsc
index 2c9ae3d..e9ca5cc 100644
--- a/capsman-rolling-upgrade.capsman.rsc
+++ b/capsman-rolling-upgrade.capsman.rsc
@@ -4,7 +4,7 @@
# Michael Gisbers <michael@gisbers.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
-# provides: capsman-rolling-upgrade
+# provides: capsman-rolling-upgrade.capsman
# requires RouterOS, version=7.13
#
# upgrade CAPs one after another
diff --git a/capsman-rolling-upgrade.template.rsc b/capsman-rolling-upgrade.template.rsc
index 2098bc0..a28d7f7 100644
--- a/capsman-rolling-upgrade.template.rsc
+++ b/capsman-rolling-upgrade.template.rsc
@@ -4,7 +4,7 @@
# Michael Gisbers <michael@gisbers.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
-# provides: capsman-rolling-upgrade
+# provides: capsman-rolling-upgrade%TEMPL%
# requires RouterOS, version=7.13
#
# upgrade CAPs one after another
diff --git a/capsman-rolling-upgrade.wifi.rsc b/capsman-rolling-upgrade.wifi.rsc
index 36b8c0f..22f8818 100644
--- a/capsman-rolling-upgrade.wifi.rsc
+++ b/capsman-rolling-upgrade.wifi.rsc
@@ -4,7 +4,7 @@
# Michael Gisbers <michael@gisbers.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
-# provides: capsman-rolling-upgrade
+# provides: capsman-rolling-upgrade.wifi
# requires RouterOS, version=7.13
#
# upgrade CAPs one after another