diff options
author | Herwig Hochleitner <herwig@bendlas.net> | 2020-08-25 23:34:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-25 23:34:18 +0200 |
commit | 49dba2c4ad8c8d2d7d94db94366093f83af913ba (patch) | |
tree | aab56a873b6ea4cb0b097ea9852b8cb8fda1ba88 /nixos | |
parent | 4ddb43ad6d90c66644319566e55832ae3db298bc (diff) | |
parent | 8e3da733b15a3c835305d0ba99e33ab33b4ce2d1 (diff) |
Merge pull request #96263 from bendlas/warn-wpa-supplicant-config
nixos: wpa_supplicant: warn on unused config
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/wpa_supplicant.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/wpa_supplicant.nix b/nixos/modules/services/networking/wpa_supplicant.nix index 08a17d20ed7fd..395139879036a 100644 --- a/nixos/modules/services/networking/wpa_supplicant.nix +++ b/nixos/modules/services/networking/wpa_supplicant.nix @@ -233,6 +233,9 @@ in { path = [ pkgs.wpa_supplicant ]; script = '' + if [ -f /etc/wpa_supplicant.conf -a "/etc/wpa_supplicant.conf" != "${configFile}" ] + then echo >&2 "<3>/etc/wpa_supplicant.conf present but ignored. Generated ${configFile} is used instead." + fi iface_args="-s -u -D${cfg.driver} -c ${configFile}" ${if ifaces == [] then '' for i in $(cd /sys/class/net && echo *); do |