mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
check-routeros-update: wait to be fully connected
This commit is contained in:
parent
182bd2fa0b
commit
06b235b3b7
1 changed files with 3 additions and 0 deletions
|
@ -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={
|
||||||
|
|
Loading…
Reference in a new issue