Skip to contentSkip to conversation

USB class hotplug confusion

DISCUSSION Andrey Borzenkov 1 participant 1 message Feb 22, 2004

lore
Share & tools
lore
#0 lore raw

Since some time running -mm produces

cat: /sys//class/usb/lp0/bNumConfigurations: No such file or directory /etc/hotplug/usb.agent: line 144: [: too many arguments

there is no wonder as

{pts/2}% l /sys/class/usb/lp0
dev device@ driver@

apparently in addition to "normal" USB events we get extra class events; I must admit I do not understand what "class" is for and why usblp is using it but e.g. joystick (that I have as well) does not.

Is there simple way to simply ignore those events in usb.agent? Or better yet - is it possible to specify different agents for "device" and "class" events? As kernel provides both they are presumed to be different and require different actions?

-andrey

-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel