networking module: fix for wlanInterfaces
This commit is contained in:
parent
277d44f8fb
commit
213bb58752
@ -59,7 +59,7 @@ let
|
|||||||
# place the interface which is named after the device at the beginning.
|
# place the interface which is named after the device at the beginning.
|
||||||
wlanListDeviceFirst = device: interfaces:
|
wlanListDeviceFirst = device: interfaces:
|
||||||
if hasAttr device interfaces
|
if hasAttr device interfaces
|
||||||
then [{"${device}"=interfaces.device; _iName=device;}] ++ mapAttrsToList (n: v: v//{_iName=n;}) (filterAttrs (n: _: n!=device) interfaces)
|
then mapAttrsToList (n: v: v//{_iName=n;}) (filterAttrs (n: _: n==device) interfaces) ++ mapAttrsToList (n: v: v//{_iName=n;}) (filterAttrs (n: _: n!=device) interfaces)
|
||||||
else mapAttrsToList (n: v: v // {_iName = n;}) interfaces;
|
else mapAttrsToList (n: v: v // {_iName = n;}) interfaces;
|
||||||
|
|
||||||
# udev script that configures a physical wlan device and adds virtual interfaces
|
# udev script that configures a physical wlan device and adds virtual interfaces
|
||||||
|
Loading…
x
Reference in New Issue
Block a user