aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-01-16 16:11:50 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-01-16 16:11:50 +0100
commit12da4de305421fe155e352cc9b1396f56338516e (patch)
tree20197fc716c9acfdd29159dae6d780d78f9e4c96
parent08c90c95b71f74a15b09c23efef484d4b471ec04 (diff)
check-routeros-update: do not act if reboot is scheduled
-rw-r--r--check-routeros-update4
1 files changed, 4 insertions, 0 deletions
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 ];