···1110 '';
11111112 # Udev script to execute for a new WLAN interface. The script configures the new WLAN interface.
1113- newInterfaceScript = new: pkgs.writeScript "udev-run-script-wlan-interfaces-${new._iName}.sh" ''
1114 #!${pkgs.stdenv.shell}
1115 # Configure the new interface
1116 ${pkgs.iw}/bin/iw dev ${new._iName} set type ${new.type}
···1132 # It is important to have that rule first as overwriting the NAME attribute also prevents the
1133 # next rules from matching.
1134 ${flip (concatMapStringsSep "\n") (wlanListDeviceFirst device wlanDeviceInterfaces."${device}") (interface:
1135- ''ACTION=="add", SUBSYSTEM=="net", ENV{DEVTYPE}=="wlan", ENV{INTERFACE}=="${interface._iName}", ${systemdAttrs interface._iName}, RUN+="${newInterfaceScript interface}"'')}
11361137 # Add the required, new WLAN interfaces to the default WLAN interface with the
1138 # persistent, default name as assigned by udev.
···1110 '';
11111112 # Udev script to execute for a new WLAN interface. The script configures the new WLAN interface.
1113+ newInterfaceScript = device: new: pkgs.writeScript "udev-run-script-wlan-interfaces-${new._iName}.sh" ''
1114 #!${pkgs.stdenv.shell}
1115 # Configure the new interface
1116 ${pkgs.iw}/bin/iw dev ${new._iName} set type ${new.type}
···1132 # It is important to have that rule first as overwriting the NAME attribute also prevents the
1133 # next rules from matching.
1134 ${flip (concatMapStringsSep "\n") (wlanListDeviceFirst device wlanDeviceInterfaces."${device}") (interface:
1135+ ''ACTION=="add", SUBSYSTEM=="net", ENV{DEVTYPE}=="wlan", ENV{INTERFACE}=="${interface._iName}", ${systemdAttrs interface._iName}, RUN+="${newInterfaceScript device interface}"'')}
11361137 # Add the required, new WLAN interfaces to the default WLAN interface with the
1138 # persistent, default name as assigned by udev.