- From: kristofer hansson <kristofer.hansson_at_gmail.com>
- Date: Mon, 7 Nov 2005 13:33:40 +0100
I have multiple usbdux devices connected, when removing one of them I want to run a usb hotplug removal script in which I call "comedi_config -r /dev/comedi[devicenr]" for the specific device only. I need to find out the specific device node nr of the device that is beeing unpluged, in order to avoid having to remove all devices and then re-register them again. This could also be usefull when connecting a new usb dux and there by only calling "comedi_config -i firmware /dev/comedi[devicenr] usbdux" once instead of calling it multiple times, once for each device as in the current /etc/hotplug/usb/usbdux script. How and when does comedi/usbdux bind a newly connected udb device to a specific device node in /dev ? The scripts to call when recieving an usb add or remove event are defined in /etc/hotplug/usb.agent /Kristofer Hansson
Received on 2005-11-07Z12:33:40