diff options
author | Christian Hesse <mail@eworm.de> | 2020-05-26 23:35:24 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-05-26 23:35:24 +0200 |
commit | e871cb5a6918c7f4f721fee7be94fe3f261089be (patch) | |
tree | d459a8b8f2c501d98c41d6d2c513c89065538ab2 /global-functions | |
parent | 4166bf91c348a261563087e14cb839e2695b991f (diff) |
global-functions: add $WaitFullyConnected
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; |