aboutsummaryrefslogtreecommitdiffstats
path: root/check-routeros-update
diff options
context:
space:
mode:
Diffstat (limited to 'check-routeros-update')
-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 ];