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=88db3905576720349e8bfb1734776c227e6ec3d8;hpb=282988c4f8a85c28468e6442e86efe51dc71cc93 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}"