mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 04:24:32 +00:00
89af7fbfa6
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
14 lines
576 B
Plaintext
14 lines
576 B
Plaintext
# 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"
|