mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
![Yu Watanabe](/assets/img/avatar_default.png)
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"
|