On Fri, May 15, 2009 at 4:20 AM, Adam Jakubowski <yar...@yahoo.com> wrote:
> usbdevs allows me to assign a uftdi device to a physical
> FTDI device by its iSerialNumber, i.e.:

no it doesn't. usbdevs prints what it can about usb devices including
things like the attached driver and device serial number. if you can
somehow use those, great, but it does not do the binding.

> Is there a more proper and
> elegant way to do this? What I need is to write a simple shell script or C
> program doing this task.

look at hotplugd.

I do much the same thing for automagic disk mounting... hotplugd is
notified that a new device has been plugged in, it runs a perl script
which parses dmesg and usbdevs and a conf file and eventually mounts a
given slice in the right place. you could probably do the same thing
to create and delete symlinks in /dev. then, open
/dev/cua.massspectrometer, /dev/cua.firewallconsole, /dev/cua.toaster,
/dev/cua.gps ...

CK

-- 
GDB has a 'break' feature; why doesn't it have 'fix' too?

Reply via email to