aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--check-routeros-update3
1 files changed, 3 insertions, 0 deletions
diff --git a/check-routeros-update b/check-routeros-update
index 02c547a..c641e04 100644
--- a/check-routeros-update
+++ b/check-routeros-update
@@ -21,6 +21,7 @@
:global SendNotification;
:global SymbolForNotification;
:global VersionToNum;
+:global WaitFullyConnected;
:local DoUpdate do={
:if ([ :len [ / system script find where name="packages-update" ] ] > 0) do={
@@ -31,6 +32,8 @@
:error "Waiting for system to reboot.";
}
+$WaitFullyConnected;
+
:if ([ :len [ / system package find where name="wireless" disabled=no ] ] > 0) do={
:if ([ / interface wireless cap get enabled ] = true && \
[ / caps-man manager get enabled ] = false) do={