Common Match Keys
The following table describes commonly used match keys in rules.
| Match Key | Description |
|---|---|
|
|
Matches the name of the action that led to an event. For
example, |
|
|
Matches a value for the device property key.
For example, |
|
|
Matches the name of the device that is affected by an event. For
example, |
|
|
Matches the name of a device file or network interface. For
example, |
|
|
Matches the subsystem of the device that is affected by an
event. For example, |
|
|
Tests wheter the specified file or path exists; for example,
|
Other match keys include ATTR{filename},
ATTRS{filename},
DEVPATH, DRIVER, DRIVERS,
KERNELS, PROGRAM, RESULT,
SUBSYSTEMS, and SYMLINK.