mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
check-routeros-update: wait to be fully connected
This commit is contained in:
@@ -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={
|
||||
|
Reference in New Issue
Block a user