Per Bjornsson (perbj(a)stanford.edu) said:
OK, on a more serious note, what actually drives the scripts there
is
the /etc/hotplug/usb.agent, which maps devices to hotplug actions using
the various helper files (including those in /etc/hotplug/usb). Is this
still the preferred way to go about adding some custom device
initialization on hotplug?
No. In fact, /etc/hotplug/usb.agent is going away very very soon; it should
all be done via udev rules.
using libusb. Thus we're not interested in making device nodes in
/dev
or so, the only thing the script is supposed to do is to set up the
correct access permissions on the relevant /proc/bus/usb/* node.
That should be done easily enough - even if you're not making device nodes,
you'll still get notification of the device id being added, which should
allow you to do this.
Bill