(Sorry for the private message. Here it goes again...)

Mensaje citado por: Greg KH <[EMAIL PROTECTED]>:

> On Wed, Oct 15, 2003 at 03:43:55PM -0700,
> [EMAIL PROTECTED] wrote:
> > PROBLEM: /sbin/hotplug does not receive PRODUCT and
> ACTION
> > environment vars on Visor USB hotplug
>
> Hm, works for me :)
> 

Sorry for the mismatch in add/remove events...

Seems there is a documentation problem. As far a I could see,
there is no mention of multiple hotplug events in
Documentation/usb/hotplug.txt in the source tree, and
the environment convention is documented as unchanged since
kernel 2.4. From what I could see from the kernel logs, there
is an 'usb' event fired when the Palm connects and the visor
module is not loaded. If I load the module manually (via
modprobe) some new events appear before the usb event: 
'usb-serial', and 'tty' events. However, I am interested in the
case when visor is not loaded, and those additional events 
do not get fired.

BTW, here is the environment for the 'add' action in 2.6:

OLDPWD=/etc/hotplug
DEVPATH=/devices/pci0000:00/0000:00:04.2/usb1/1-1/1-1.1
PATH=/bin:/sbin:/usr/sbin:/usr/bin
ACTION=add
PWD=/etc/hotplug
HOME=/
SHLVL=1
SEQNUM=121
_=/bin/env

It seems that DEVPATH is somehow replacing the role of PRODUCT
 in the environment. If so, I would be thankful to be instructed
of the format of the DEVPATH variable, so I can write some
script to create a PRODUCT variable for my 2.4-style scripts.

Thanks for your attention.

Alex Villac�s Lasso



------------------------------------------------------------------------

Mail enviado desde PortalMail 1.4.2 Web based email system.

PaloSanto Solutions, Sunnyvale CA.

http://www.palosanto.com



-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to