···11101110 '';
1111111111121112 # Udev script to execute for a new WLAN interface. The script configures the new WLAN interface.
11131113- newInterfaceScript = new: pkgs.writeScript "udev-run-script-wlan-interfaces-${new._iName}.sh" ''
11131113+ newInterfaceScript = device: new: pkgs.writeScript "udev-run-script-wlan-interfaces-${new._iName}.sh" ''
11141114 #!${pkgs.stdenv.shell}
11151115 # Configure the new interface
11161116 ${pkgs.iw}/bin/iw dev ${new._iName} set type ${new.type}
···11321132 # It is important to have that rule first as overwriting the NAME attribute also prevents the
11331133 # next rules from matching.
11341134 ${flip (concatMapStringsSep "\n") (wlanListDeviceFirst device wlanDeviceInterfaces."${device}") (interface:
11351135- ''ACTION=="add", SUBSYSTEM=="net", ENV{DEVTYPE}=="wlan", ENV{INTERFACE}=="${interface._iName}", ${systemdAttrs interface._iName}, RUN+="${newInterfaceScript interface}"'')}
11351135+ ''ACTION=="add", SUBSYSTEM=="net", ENV{DEVTYPE}=="wlan", ENV{INTERFACE}=="${interface._iName}", ${systemdAttrs interface._iName}, RUN+="${newInterfaceScript device interface}"'')}
1136113611371137 # Add the required, new WLAN interfaces to the default WLAN interface with the
11381138 # persistent, default name as assigned by udev.