SecondSonConsulting / Baseline

An MDM agnostic zero touch solution for macOS
MIT License
201 stars 22 forks source link

Feature Request: option to wait for a network connection before proceding #58

Open marceldekuiper opened 3 months ago

marceldekuiper commented 3 months ago

Hi, new mac admin here and levering this awesome app with our intune deployment.

We've noticed that our Mac's disconnect from our Eduroam wifi after the Setup Assistant completes. It usually reconnects within a few moments but it's long enough for the Baseline app to fail all the actions. Would be nice if we could set a 'wait for network'-option with a max wait time. This (might) also happen with other wifi network, depeding on their crappiness ofcourse.

So for example an '--wait-for-network 60' so all actions are paused for a maximum of 60 seconds and will fail if no network connection is available after that time. If the connection is restored within those 60 seconds, all actions should resume asap.

BigMacAdmin commented 3 months ago

Hi @marceldekuiper ,

This has come up for discussion in the past. Due to the complexities of determining when a device is considered "online", we have opted not to implement this in the main project.

For example: "online" to you may mean being able to reach Google or Github, but this is highly dependent on network landscapes, and there is no sane way to account for all (or even many) of the various scenarios that may come up.

I recommend that you utilize an InitialScript to customize this for your environment. You can use swiftDialog in this script to capture the screen with a "Please wait..." type dialog, and program any check you need. Once your network status is validated, you can close any dialog windows you may have created and exit the script. Baseline will then resume from there.

Also, welcome to the Mac Admins community, and if you have not joined the Slack you really should. There is a channel dedicated to Baseline and many other awesome projects and topics. https://macadmins.org

marceldekuiper commented 2 months ago

Thanks for the reply @BigMacAdmin, i'll look into using an InitialScript.

And again, thank you, for the referral to the macadmins Slack!