mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 02:50:10 +01:00
Load the thunderbolt-net module if we see a host-to-host connection and configure the resulting ethernet connection automatically to be a link-local only one. The latter is done by setting a new udev property "NM_AUTO_DEFAULT_LINK_LOCAL_ONLY" which is picked up when we configure the connection for the device. https://github.com/NetworkManager/NetworkManager/pull/97
13 lines
576 B
Text
13 lines
576 B
Text
# Do not modify this file, it will get overwritten on updates.
|
|
# To override or extend the rules place a file in /etc/udev/rules.d
|
|
|
|
ACTION!="add", GOTO="nm_thunderbolt_end"
|
|
|
|
# Load he thunderbolt-net driver if we a device of type thunderbolt_xdomain
|
|
# is added.
|
|
SUBSYSTEM=="thunderbolt", ENV{DEVTYPE}=="thunderbolt_xdomain", RUN{builtin}+="kmod load thunderbolt-net"
|
|
|
|
# For all thunderbolt network devices, we want to enable link-local configuration
|
|
SUBSYSTEM=="net", ENV{ID_NET_DRIVER}=="thunderbolt-net", ENV{NM_AUTO_DEFAULT_LINK_LOCAL_ONLY}="1"
|
|
|
|
LABEL="nm_thunderbolt_end"
|