diff options
author | Christian Hesse <mail@eworm.de> | 2021-02-18 23:14:46 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-02-18 23:14:46 +0100 |
commit | 06b235b3b7a3fdc1a22e1622ceaf545376e8b01f (patch) | |
tree | 81de3278f54407ae881c1186a4b2098316c3a4eb | |
parent | 182bd2fa0b21a499c8d82f479a261997fc4631f9 (diff) |
check-routeros-update: wait to be fully connected
-rw-r--r-- | check-routeros-update | 3 |
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={ |