diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-03-04 18:59:13 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:35:08 -0700 |
commit | d5f91372dd3241f8b4bbe2a99aaaeda541a76bad (patch) | |
tree | 196ca6a32c2c9ba4b6fb4b2cedfe4abb309e8aa5 /udev.8 | |
parent | ebc39fefd5cb8249cd09d4b3d1b8c72c9e48bab1 (diff) |
[PATCH] conditional remove of trailing sysfs whitespace
Hey, it may never happen, that one wants to distinguish attributes by
trailing spaces, but we should not lose the control over it, just for
being lazy :)
Here we remove the trailing spaces of the sysfs attribute only if the
configured value to match doesn't have any trailing spaces by itself.
So if you put a attribute in a rule with spaces at the end, the sysfs
attribute _must_ match exactly.
Is that cool for everyone?
As usual, 2 tests are added for it with a artificial sysfs file and
a few words to the man page.
Diffstat (limited to 'udev.8')
-rw-r--r-- | udev.8 | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -178,6 +178,9 @@ Match the topological position on bus, like physical port of USB device Match sysfs device attribute like label, vendor, USB serial number, SCSI UUID or file system label. Up to 5 different sysfs files can be checked, with all of the values being required in order to match the rule. +.br +Trailing whitespace characters in the sysfs attribute value are ignored, if +the key doesn't have any trailing whitespace characters by itself. .TP .B PROGRAM Call external program. This key is valid if the program returns successful. |