mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-14 23:12:21 +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 WaitDefaultRouteReachable;
|
||||||
:global WaitDNSResolving;
|
:global WaitDNSResolving;
|
||||||
:global WaitForFile;
|
:global WaitForFile;
|
||||||
|
:global WaitFullyConnected;
|
||||||
:global WaitTimeSync;
|
:global WaitTimeSync;
|
||||||
|
|
||||||
# check and download required certificate
|
# check and download required certificate
|
||||||
|
@ -749,6 +750,17 @@
|
||||||
:return true;
|
: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
|
# wait for time to become synced
|
||||||
:set WaitTimeSync do={
|
:set WaitTimeSync do={
|
||||||
:global LogPrintExit;
|
:global LogPrintExit;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue