[Nut-upsuser] Udev rules troubles: incorrect ACTION expression?
Sergei V. Dubrov
dubrov at inp.nsk.su
Fri Jul 22 15:00:48 UTC 2011
G'day!
On 21 Jul 2011 at 9:23, Petr Kub'anek wrote:
> Hi Sergei,
>
> you can get udev debugging using:
>
> root at host:~# /etc/init.d/udev stop
> root at host:~# udevd -debug
> 1288130388.961886 [26940] udev_device_new_from_syspath: ...
>
> This might shed some light into syntax issues..
As it turned out the ability to understand the expression
ACTION!="add|change" became possible for udev 109 and newer:
http://git.kernel.org/?p=linux/hotplug/udev.git;a=shortlog;h=refs/tags/109
(make ACTION!="add|change" working)
For example, in @{SL5/RHEL5/Centos5} udev is 097 version, in @SL6 - 147, in
@gentoo-rolling - 171. XenServer 5.6 SP2 has udev 095.
I think it would be appropriate to modify the contents of 52-nut-
usbups.rules in the NUT sources to support for a different version of udev.
>
> Petr Kub'anek
>
------
Dubrov
More information about the Nut-upsuser
mailing list