mirror of
https://github.com/beeyev/Mikrotik-RouterOS-automatic-backup-and-update.git
synced 2025-07-16 08:54:36 +02:00
commit
2392ac3fda
1 changed files with 6 additions and 1 deletions
|
@ -89,6 +89,11 @@ if ([:len [/system identity get name]] = 0 or [/system identity get name] = "Mik
|
|||
:if ($isBetaPos > 1) do={
|
||||
:set osVer ([:pick $osVer 0 $isBetaPos] . "." . [:pick $osVer ($isBetaPos + 4) [:len $osVer]]);
|
||||
}
|
||||
# Replace word `rc` with dot
|
||||
:local isRcPos [:tonum [:find $osVer "rc" 0]];
|
||||
:if ($isRcPos > 1) do={
|
||||
:set osVer ([:pick $osVer 0 $isRcPos] . "." . [:pick $osVer ($isRcPos + 2) [:len $osVer]]);
|
||||
}
|
||||
|
||||
:local dotPos1 [:find $osVer "." 0];
|
||||
|
||||
|
@ -392,4 +397,4 @@ if ($isOsNeedsToBeUpdated = true) do={
|
|||
/system package update install;
|
||||
}
|
||||
|
||||
:log info "$SMP script \"Mikrotik RouterOS automatic backup & update\" completed it's job.\r\n";
|
||||
:log info "$SMP script \"Mikrotik RouterOS automatic backup & update\" completed it's job.\r\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue