[Nut-upsdev] Re: Bug#332939: nut-usb: Needs an udev rule for udev >= 0.070-3

Julien BLACHE jblache at debian.org
Mon Oct 10 16:35:31 UTC 2005


Arnaud Quette <aquette.dev at gmail.com> wrote:

Hi Arnaud & list,

> @Julien: can you please have a look at this point for us.
> I've seen you already did it for SANE...

Yep. I'll try to insert that in my TODO list for this week, but it's
quite crowded already :)

>> > The latest version of udev: 0.070-3 conficts with hotplug.
>> > This means that while the new udev includes the hotplug functionalities,
>> > the rules in /etc/hotplug/usb/libhidups and /etc/hotplug/usb/libhid.usermap
>> > have to be rewritten as udev rules.

Wrong.

udev 0.070-3 replaces hotplug until kernel 2.6.14 is out (and
available in Debian, FWIW) but will only run the "new" hotplug hooks
(see /etc/hotplug.d/usb/libsane.hotplug for an example, although this
one is kind of special ; another example can be found in libticables3).

Once kernel 2.6.14 will be out, udev will create USB device nodes in
/dev/usb/* and then only udev rules will be used/useful. (udev cannot
change the permissions on /proc/bus/usb/* via udev rules, only via
hotplug scripts)

@Arnaud: as you can see, the latest libsane contains *both* the udev
rules and the hotplug hooks to ensure a smooth transition. This all
was done with the help of Marco d'Itri.

JB.

-- 
 Julien BLACHE <jblache at debian.org>  |  Debian, because code matters more 
 Debian & GNU/Linux Developer        |       <http://www.debian.org>
 Public key available on <http://www.jblache.org> - KeyID: F5D6 5169 
 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 



More information about the Nut-upsdev mailing list