check-routeros-update: wait to be fully connected

This commit is contained in:
Christian Hesse 2021-02-18 23:14:46 +01:00
parent 182bd2fa0b
commit 06b235b3b7

View file

@ -21,6 +21,7 @@
:global SendNotification; :global SendNotification;
:global SymbolForNotification; :global SymbolForNotification;
:global VersionToNum; :global VersionToNum;
:global WaitFullyConnected;
:local DoUpdate do={ :local DoUpdate do={
:if ([ :len [ / system script find where name="packages-update" ] ] > 0) do={ :if ([ :len [ / system script find where name="packages-update" ] ] > 0) do={
@ -31,6 +32,8 @@
:error "Waiting for system to reboot."; :error "Waiting for system to reboot.";
} }
$WaitFullyConnected;
:if ([ :len [ / system package find where name="wireless" disabled=no ] ] > 0) do={ :if ([ :len [ / system package find where name="wireless" disabled=no ] ] > 0) do={
:if ([ / interface wireless cap get enabled ] = true && \ :if ([ / interface wireless cap get enabled ] = true && \
[ / caps-man manager get enabled ] = false) do={ [ / caps-man manager get enabled ] = false) do={