On Tue, Jan 20, 2004 at 09:58:41AM +0100, Zodel Wolfgang (MPI/SFS) wrote:
> Hi,
> when the usb.agent is called by /sbin/hotplug with some parameters
> (e.g. ACTION, INTERFACE, DEVICE, PRODUCT, TYPE), I miss the assignment
> between these specific device variables and the attached device file
> name string "/dev/bus/ttyUSBx". Is there an environment variable,
> which contains this device file name string or from where I can get
> it?

Drop a script in:
        /etc/hotplug.d/usb-serial/
called
        my_script.hotplug

and it will be called for every usb-serial device that is added to the
system.  The "default" hotplug scripts ignore the usb-serial class
hotplug events.  Make sure you have the latest release of the hotplug
scripts in order for this to work properly.

And all you will get is the DEVPATH for the device.  You will have to go
up a directory from that location in sysfs to be able to read the other
USB specific information.

Hope this helps,

greg k-h


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to