Re: Waiting complete insertion of usb device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 15, 2009 at 11:13:43AM +0200, Anthony Viallard wrote:
> Hello list,
> 
> I'm working on a 3G USB dongle which offer tty to communicate with him.
> 
> I need to start a service when this dongle is plugged to my system. This 
> service uses tty (there are 4 tty (diag, cmd, data and for voice). So, i 
> need to waiting the complete insertion of the USB dongle before 
> launching it.
> 
> For now, i'm waiting the last tty (ttyUSB3) event, sleep 1 second and 
> launch the service. But i think my solution is pretty crap.
> 
> Is there a better way to do this ?
> 
> (I'm working with old architecture of hotplug: /bin/hotplug script which 
> launch /etc/hotplug.d/${SUBSYSTEM}/ scripts...)

That architecture is obsolete, and is not shipped, or supported by any
distro or developer, so you are on your own if you want to rely and use
it.

good luck,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux