]> git.ipfire.org Git - thirdparty/systemd.git/blob - rules/80-net-setup-link.rules
rules: net-setup-link - preserve ID_NET_LINK_FILE and ID_NET_NAME after MOVE
[thirdparty/systemd.git] / rules / 80-net-setup-link.rules
1 # do not edit this file, it will be overwritten on update
2
3 SUBSYSTEM!="net", GOTO="net_setup_link_end"
4
5 IMPORT{builtin}="path_id"
6
7 ACTION=="move", IMPORT{db}="ID_NET_DRIVER", IMPORT{db}="ID_NET_LINK_FILE",
8 IMPORT{db}="ID_NET_NAME"
9
10 ACTION!="add", GOTO="net_setup_link_end"
11
12 IMPORT{builtin}="net_setup_link"
13
14 NAME=="", ENV{ID_NET_NAME}!="", NAME="$env{ID_NET_NAME}"
15
16 LABEL="net_setup_link_end"