- Copy the contents of the code block below.
- Paste it into a file
- Save it as
generate-wifi-config.sh
- Execute:
chmod +x ./generate-wifi-config.sh
to make it executable.
Note: Upon execution, your operating system is going to ask for your machine password. It does this because the script obtains your Wi-Fi password that is stored in the macOS Keychain.