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 :) > I modified the hotplug scripts to capture the environment. > On 2.4.23-pre5 the environment looks like this: > > DEVFS=/proc/bus/usb > OLDPWD=/etc/hotplug > PATH=/bin:/sbin:/usr/sbin:/usr/bin > ACTION=add > PWD=/etc/hotplug > HOME=/ > SHLVL=1 > DEVICE=/proc/bus/usb/001/004 > INTERFACE=255/0/0 > PRODUCT=830/20/100 > TYPE=0/0/0 > _=/bin/env That was an add event for a usb device. > On 2.6.0-test7-bk5 the environment looks like this: > > 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=remove > PWD=/etc/hotplug > HOME=/ > SHLVL=1 > SEQNUM=120 > _=/bin/env This was a remove event for a usb interface, not a usb device. These examples are totally different, how can you compare them? For 2.6 a _lot_ more hotplug events are generated. Make sure you pick out the right one you are looking for. Look for the usb add event for that device, it should be present. If not, everyone's module load code would be broken, and I would have heard about that by now :) thanks, greg k-h ------------------------------------------------------- This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo The Event For Linux Datacenter Solutions & Strategies in The Enterprise Linux in the Boardroom; in the Front Office; & in the Server Room http://www.enterpriselinuxforum.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
