Generate Wi-Fi Card on macOS
- Copy the contents of the code block below.
- Paste it into a file
- Save it as
chmod +x ./generate-wifi-config.shto 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.