<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">XML is useful if you have complex data to transmit and need to nest multiple levels. Most config files are not nested that deep, and<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">are not complex data structures. Hell, I can't think of any that need more than the X=Y properties type structure, although I'm sure there are some.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 5, 2016 at 3:48 PM, Alex Carver <span dir="ltr"><<a href="mailto:agcarver+ale@acarver.net" target="_blank">agcarver+ale@acarver.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2016-08-05 10:05, Todor Fassl wrote:<br>
> The reason my rule didn't work for ubuntu is that the newer version of<br>
> udev has a different name for the attribute array. Instead of SYSFS it's<br>
> ATTR. If your rules file is 10-local.rules:<br>
><br>
> sed -i 's/SYSFS/ATTR/g' 10-local.rules<br>
><br>
> Part of the problem is that every system in linux has it's own little<br>
> programming language for it's config files. Too bad xml never caught on.<br>
<span class="">> Well, xml kinda sucks, I guess that's why it never caughton.<br>
><br>
><br>
<br>
</span>Looking at your original rule, I think if you can make your rule a bit<br>
more specific you might avoid the reloads. At the moment you only look<br>
at the vendor and product IDs. Do an lsusb to see if anything else is<br>
sharing those numbers (always possible) and then use the verbose output<br>
of lsusb plus the output of udevadm (with an appropriate info query) to<br>
see if you can tailor the rule.<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Pete Hardie<br>--------<br>Better Living Through Bitmaps</div>
</div>