1
0
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:
Christian Hesse
2020-01-16 16:11:50 +01:00
parent 08c90c95b7
commit 12da4de305

View File

@ -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 ];