mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
check-routeros-update: do not act if reboot is scheduled
This commit is contained in:
@ -29,6 +29,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
:if ([ / system scheduler print count-only where name="reboot-for-update" ] > 0) do={
|
||||
:error "A reboot for update is already scheduled.";
|
||||
}
|
||||
|
||||
/ system package update check-for-updates without-paging;
|
||||
:local Update [ / system package update get ];
|
||||
|
||||
|
Reference in New Issue
Block a user