udev: support explicit key match, non-match and assignment
I've added more descriptive key assignment and match operators to the udev rules parser to make the rules better readable.
The KEY="<value>" format supports '=', '=', '!=,' , '+=' now. This makes it easy to skip certain attribute matches without composing rules with weird character class negations like:
KERNEL="[!s][!c][!d]*"
this can now be replaced with:
KERNEL!="scd*"
The current simple '=' is still supported, and should work as it does today, but existing rules should be converted if possible, to be better readable.
Thanks,
Kay
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Re: udev: support explicit key match, non-match and assignment operators
Quoted 8 lines · Kay Sievers
I've added more descriptive key assignment and match operators to the udev rules parser to make the rules better readable.
The KEY="<value>" format supports '=', '=', '!=,' , '+=' now. This makes it easy to skip certain attribute matches without composing rules with weird character class negations like:
KERNEL="[!s][!c][!d]*"
Quoted 5 lines
this can now be replaced with:
KERNEL!="scd*"The current simple '=' is still supported, and should work as it does today, but existing rules should be converted if possible, to be better readable.
Very nice, thanks for doing this work.
greg k-h
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel