global-functions: add $WaitFullyConnected

This commit is contained in:
Christian Hesse 2020-05-26 23:35:24 +02:00
parent 4166bf91c3
commit e871cb5a69

View file

@ -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;