mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-27 03:21:32 +03:00
e0e789c1e9
Previous commit makes drop ID_NET_DRIVER=, ID_NET_LINK_FILE=, and ID_NET_NAME= properties for network interfaces on 'move' uevent. ID_NET_DRIVER= and ID_NET_LINK_FILE= properties are used by networkctl. ID_NET_NAME= may be used by end-user rules or programs. So, let's re-assign them on 'move' uevent. (Note that strictly speaking, this makes them re-assigned on all but 'remove' uevent.)
14 lines
295 B
Plaintext
14 lines
295 B
Plaintext
# do not edit this file, it will be overwritten on update
|
|
|
|
SUBSYSTEM!="net", GOTO="net_setup_link_end"
|
|
|
|
IMPORT{builtin}="path_id"
|
|
|
|
ACTION=="remove", GOTO="net_setup_link_end"
|
|
|
|
IMPORT{builtin}="net_setup_link"
|
|
|
|
NAME=="", ENV{ID_NET_NAME}!="", NAME="$env{ID_NET_NAME}"
|
|
|
|
LABEL="net_setup_link_end"
|