mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
rules_generator: do not create rules with insufficient matches
Thanks to Alexander E. Patrakov for pointing out that we create invalid rules. We still need a proper fix for devices we skip creating rules (locally administered MAC), but want to swap names with interface names we created rules for.
This commit is contained in:
parent
c645b98b7e
commit
c8ee8f983f
@ -44,6 +44,9 @@ SUBSYSTEMS=="ieee1394", ENV{COMMENT}="Firewire device $attr{host_id})"
|
||||
# S/390 uses id matches only, do not use MAC address match
|
||||
SUBSYSTEMS=="ccwgroup", ENV{COMMENT}="S/390 $driver device at $id", ENV{MATCHID}="$id", ENV{MATCHDRV}="$driver", ENV{MATCHADDR}=""
|
||||
|
||||
# see if we got enough data to create a rule
|
||||
ENV{MATCHADDR}=="", ENV{MATCHID}=="", ENV{INTERFACE_NAME}=="", GOTO="persistent_net_generator_end"
|
||||
|
||||
# default comment
|
||||
ENV{COMMENT}=="", ENV{COMMENT}="$env{SUBSYSTEM} device"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user