nixos: wpa_supplicant: warn on unused config
This commit is contained in:
parent
7b527223fd
commit
8e3da733b1
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue