From 12da4de305421fe155e352cc9b1396f56338516e Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 16 Jan 2020 16:11:50 +0100 Subject: check-routeros-update: do not act if reboot is scheduled --- check-routeros-update | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/check-routeros-update b/check-routeros-update index 85f9168..1791b23 100644 --- a/check-routeros-update +++ b/check-routeros-update @@ -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 ]; -- cgit v1.2.3-54-g00ecf