From e871cb5a6918c7f4f721fee7be94fe3f261089be Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 26 May 2020 23:35:24 +0200 Subject: global-functions: add $WaitFullyConnected --- global-functions | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; -- cgit v1.2.3-54-g00ecf