<br><br><div class="gmail_quote">2011/7/22 Sergei V. Dubrov <span dir="ltr"><<a href="mailto:dubrov@inp.nsk.su">dubrov@inp.nsk.su</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
G'day!<br>
<div class="im"><br>
On 21 Jul 2011 at 9:23, Petr Kub'anek wrote:<br>
<br>
> Hi Sergei,<br>
><br>
> you can get udev debugging using:<br>
><br>
> root@host:~# /etc/init.d/udev stop<br>
> root@host:~# udevd -debug<br>
> 1288130388.961886 [26940] udev_device_new_from_syspath: ...<br>
><br>
> This might shed some light into syntax issues..<br>
<br>
</div>As it turned out the ability to understand the expression<br>
ACTION!="add|change" became possible for udev 109 and newer:<br>
<br>
<a href="http://git.kernel.org/?p=linux/hotplug/udev.git;a=shortlog;h=refs/tags/109" target="_blank">http://git.kernel.org/?p=linux/hotplug/udev.git;a=shortlog;h=refs/tags/109</a><br>
<br>
(make ACTION!="add|change" working)<br>
<br>
For example, in @{SL5/RHEL5/Centos5} udev is 097 version, in @SL6 - 147, in<br>
@gentoo-rolling - 171. XenServer 5.6 SP2 has udev 095.<br>
<br>
I think it would be appropriate to modify the contents of 52-nut-<br>
usbups.rules in the NUT sources to support for a different version of udev.<br></blockquote></div><br>well, it's sometimes hard to stand the pace of opensource devs.<br>adding legacy support makes it sometime impossible, and distract from ongoing developments.<br>
but patches are always welcome ;-)<br><br>I assume xenserver 5.6 is only a RHEL 5.6 with xen bundled (and some more), so the solution to your issue is:<br>sed -i 's|ATTR|SYSFS|g' /etc/udev/rules.d/52-nut-usbups.rules<br>
sed -i 's|add\|change|add|g' /etc/udev/rules.d/52-nut-usbups.rules<br><br>you already had the 2nd, and Petr pointed you the direction of the 1rst...<br><br>cheers,<br>Arnaud<br>-- <br>Linux / Unix Expert R&D - Eaton - <a href="http://powerquality.eaton.com" target="_blank">http://powerquality.eaton.com</a><br>
Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a><br>Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>
Free Software Developer - <a href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br><br>