X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=rules%2Fdebian%2F75-persistent-net-generator.rules;h=9fdf106045228e27aaffd5e7e3106092b84a2c6d;hp=e8d3b888e0f69fce3cc33279b1c0c22eb2bd50fe;hb=e8e9cd5d739447d58288e6251e533b07f8352928;hpb=4337f8fcf14ab49f55ea325d94a4595e5e49a3b8;ds=sidebyside diff --git a/rules/debian/75-persistent-net-generator.rules b/rules/debian/75-persistent-net-generator.rules index e8d3b888e..9fdf10604 100644 --- a/rules/debian/75-persistent-net-generator.rules +++ b/rules/debian/75-persistent-net-generator.rules @@ -1,5 +1,5 @@ # These rules generate rules to keep network interface names unchanged -# across reboots write them to /etc/udev/rules.d/70-persistent-net.rules. +# across reboots and write them to /etc/udev/rules.d/70-persistent-net.rules. # variables used to communicate: # MATCHADDR MAC address used for the match @@ -16,9 +16,6 @@ SUBSYSTEM!="net", GOTO="persistent_net_generator_end" # ignore the interface if a name has already been set NAME=="?*", GOTO="persistent_net_generator_end" -# ignore interfaces without a driver link like bridges and VLANs -DRIVERS!="?*", GOTO="persistent_net_generator_end" - # device name whitelist KERNEL!="eth*|ath*|wlan*[0-9]|msh*|ra*|sta*|ctc*|lcs*|hsi*", \ GOTO="persistent_net_generator_end" @@ -76,8 +73,9 @@ ATTRS{driver}=="?*", \ ENV{COMMENT}="$env{COMMENT} ($attr{driver})" +# ignore interfaces without a driver link like bridges and VLANs, otherwise # generate and write the rule -IMPORT{program}="write_net_rules" +DRIVERS=="?*", IMPORT{program}="write_net_rules" # rename the interface if requested ENV{INTERFACE_NEW}=="?*", NAME="$env{INTERFACE_NEW}"