Skip to content

Commit

Permalink
nixos: wpa_supplicant: warn on unused config
Browse files Browse the repository at this point in the history
  • Loading branch information
bendlas committed Aug 25, 2020
1 parent 7b52722 commit 8e3da73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nixos/modules/services/networking/wpa_supplicant.nix
Expand Up @@ -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
Expand Down

0 comments on commit 8e3da73

Please sign in to comment.