mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-07-22 20:04:31 +02:00
check-routeros-update: refuse when running from backup partition
This commit is contained in:
parent
d9693f4d5f
commit
665516b33d
1 changed files with 7 additions and 0 deletions
|
@ -51,6 +51,13 @@
|
|||
:set ExitOK true;
|
||||
:error false;
|
||||
}
|
||||
|
||||
:if ([ :len [ /system/scheduler/find where name="running-from-backup-partition" ] ] > 0) do={
|
||||
$LogPrint warning $ScriptName ("Running from backup partition, refusing to act.");
|
||||
:set ExitOK true;
|
||||
:error false;
|
||||
}
|
||||
|
||||
$WaitFullyConnected;
|
||||
|
||||
:if ([ :len [ /system/scheduler/find where name="_RebootForUpdate" ] ] > 0) do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue