All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: Waiting complete insertion of usb device
Date: Wed, 16 Sep 2009 13:19:55 +0000	[thread overview]
Message-ID: <20090916131955.GB24562@kroah.com> (raw)
In-Reply-To: <4AAF5AC7.6050600@patatrac.info>

On Wed, Sep 16, 2009 at 09:38:56AM +0200, Anthony Viallard wrote:
> Le 15/09/2009 17:28, Greg KH a écrit :
> > 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.
> >
> >
> do you mean my problem will be solved if i use udev ?

It will make things easier, yes.

      parent reply	other threads:[~2009-09-16 13:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-15  9:13 Waiting complete insertion of usb device Anthony Viallard
2009-09-15 15:28 ` Greg KH
2009-09-16  7:38 ` Anthony Viallard
2009-09-16 13:19 ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090916131955.GB24562@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.