From 06b235b3b7a3fdc1a22e1622ceaf545376e8b01f Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 18 Feb 2021 23:14:46 +0100 Subject: check-routeros-update: wait to be fully connected --- check-routeros-update | 3 +++ 1 file changed, 3 insertions(+) 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={ -- cgit v1.2.3-54-g00ecf