Bugzilla – Bug 142023
/proc/bus/usb in udev environment
Last modified: 2006-01-10 16:31:12 UTC
When running a script in response to an udev usb add event the environment contains DEVICE=/proc/bus/usb/..., I guess it should be /dev/bus/usb/... now.
No, that's a kernel added value. It was stupid in the first place to have /proc included and it should not longer be used. If usbfs is not configured in the kernel, which is the long-term goal, it will just go away.
I use this property to find bus and device number so I can pass them to lomoco (new package, just submitted). How do I determine the numbers without $DEVICE?
If you need to talk to the device node, it would be better to catch the: $udevmonitor --env ... UDEV [1136812331.052205] add@/class/usb_device/usbdev3.5 SUBSYSTEM=usb_device DEVNAME=/dev/bus/usb/003/005 ... event, cause then you can be sure the node it created at that time. The values are the numbers in the device name: usbdev<BUS>.<DEVICE>. Udev does get the numbers from there too. If you need to match on the device with the DEVICE value, we may need to add USBBUS, USBDEVICE to the kernel.
Ok, thanks. I'll switch to this event type when I can test it with an actually supported mouse (don't have one here atm).
Great, let me know how it works, or just close the bug if it's fine. I set it to NEEDINFO for this. Thanks!
works