mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: add $WaitFullyConnected
This commit is contained in:
parent
4166bf91c3
commit
e871cb5a69
1 changed files with 12 additions and 0 deletions
|
@ -44,6 +44,7 @@
|
|||
:global WaitDefaultRouteReachable;
|
||||
:global WaitDNSResolving;
|
||||
:global WaitForFile;
|
||||
:global WaitFullyConnected;
|
||||
:global WaitTimeSync;
|
||||
|
||||
# check and download required certificate
|
||||
|
@ -749,6 +750,17 @@
|
|||
:return true;
|
||||
}
|
||||
|
||||
# wait to be fully connected (default route is reachable, time is sync, DNS resolves)
|
||||
:set WaitFullyConnected do={
|
||||
:global WaitDefaultRouteReachable;
|
||||
:global WaitDNSResolving;
|
||||
:global WaitTimeSync;
|
||||
|
||||
$WaitDefaultRouteReachable;
|
||||
$WaitTimeSync;
|
||||
$WaitDNSResolving;
|
||||
}
|
||||
|
||||
# wait for time to become synced
|
||||
:set WaitTimeSync do={
|
||||
:global LogPrintExit;
|
||||
|
|
Loading…
Reference in a new issue