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
|
@ -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…
Reference in a new issue