mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-03 17:54:35 +02:00
packages-update: allow to downgrade on change of update channel
This commit is contained in:
parent
7fe0938f86
commit
6699545157
1 changed files with 9 additions and 0 deletions
|
@ -30,6 +30,15 @@
|
|||
/ system script run $Script;
|
||||
}
|
||||
|
||||
:if (!([ /system resource get version ] ~ ($Update->"channel"))) do={
|
||||
:put "Update channel changed. Want to downgrade? [y/N]";
|
||||
:if ([ :terminal inkey timeout=60 ] = 121) do={
|
||||
:log info ("Rebooting for downgrade.");
|
||||
:delay 1s;
|
||||
/ system package downgrade;
|
||||
}
|
||||
}
|
||||
|
||||
:log info ("Rebooting for update.");
|
||||
:delay 1s;
|
||||
/ system reboot;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue