Merge pull request #96263 from bendlas/warn-wpa-supplicant-config

nixos: wpa_supplicant: warn on unused config
This commit is contained in:
Herwig Hochleitner 2020-08-25 23:34:18 +02:00 committed by GitHub
commit 49dba2c4ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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