mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-01 16:54:38 +02: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…
Add table
Add a link
Reference in a new issue