Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nixos/wireless: fix failure with no interfaces
This resolves issue #101963. When the service is started and no interface is ready yet, wpa_supplicant is being exec'd with no `-i` flags, thus failing. Once the interfaces are ready, the udev rule would fire but wouldn't restart the unit because it wasn't currently running (see systemctl(1) try-restart). The solution is to exit (with a clear error message) but always restart wpa_supplicant when the interfaces are modified. (cherry picked from commit 8f17761)
- Loading branch information