diff options
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/global-functions b/global-functions index 21e89af..4bc0d0b 100644 --- a/global-functions +++ b/global-functions @@ -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; |