linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Williams <steve@icarus.com>
To: linux-hotplug@vger.kernel.org
Subject: Hotplug and USB device removal
Date: Sat, 19 May 2001 02:05:21 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-99023795831169@msgid-missing> (raw)


I'm building a USB flash programmer with an EZ-USB chip. So far, it
works fine, I'm able to plug in the device and have the hotplug
usb.agent script notice it and start my demon. All this demon does
is set permissions for the usbdevfs file and create a link in /var/run
to point to the device. Thusly, the application can access the device
as a normal user.

However, I would also like to use the hotplug system to notice the
removal of the device and *remove* my symbolic link. The scripts
currently do not support USB remove. It looks like the kernel sends
all the necessary messages, but the script just needs updating. Is
anyone working on this?

Also, as you guessed, I have a program that loads the ez-usb device
from user mode. It won't be much effort for me to polish up and
make it available to the world (especially since it supports sdcc
output) as a generic ez-usb loader, but there must be millions of
them out there:-)

-- 
Steve Williams                "The woods are lovely, dark and deep.
steve@icarus.com              But I have promises to keep,
steve@picturel.com            and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."



_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

             reply	other threads:[~2001-05-19  2:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-19  2:05 Stephen Williams [this message]
2001-05-19  3:13 ` Hotplug and USB device removal Brad Hards
2001-05-19  4:54 ` Stephen Williams
2001-05-19 10:17 ` Brad Hards
2001-05-19 10:31 ` Brad Hards
2001-05-19 14:09 ` Stephen Williams
2001-05-19 14:13 ` Stephen Williams
2001-05-19 15:57 ` David Brownell
2001-05-19 20:45 ` Greg KH
2001-05-19 21:33 ` Stephen Williams

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=marc-linux-hotplug-99023795831169@msgid-missing \
    --to=steve@icarus.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).