mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-02 01:04:55 +02:00
packages-update: check for explicit state...
... as all device-mode properties are given since RouterOS 7.14beta4. Let's assume we do not have to care about RouterOS 7.14beta2 any more... As older versions will not match the check we can now merge right away.
This commit is contained in:
parent
435f70999c
commit
07c9576377
1 changed files with 1 additions and 3 deletions
|
@ -18,7 +18,6 @@
|
|||
:global Grep;
|
||||
:global LogPrint;
|
||||
:global ParseKeyValueStore;
|
||||
:global RequiredRouterOS;
|
||||
:global ScriptFromTerminal;
|
||||
:global ScriptLock;
|
||||
:global VersionToNum;
|
||||
|
@ -100,8 +99,7 @@
|
|||
|
||||
:local DoDowngrade false;
|
||||
:if ($NumInstalled > $NumLatest) do={
|
||||
:if ([ $RequiredRouterOS $ScriptName "7.17beta2" false ] = true && \
|
||||
([ /system/device-mode/get ]->"downgrade") != true) do={
|
||||
:if (([ /system/device-mode/get ]->"downgrade") = false) do={
|
||||
$LogPrint error $ScriptName \
|
||||
("The device mode has locked downgrades! You will need physical access!");
|
||||
:error false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue