From mboxrd@z Thu Jan 1 00:00:00 1970 From: ming deng Date: Fri, 12 Jul 2002 20:33:39 +0000 Subject: Re: Linux-hotplug-devel digest, Vol 1 #251 - 2 msgs Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org > > >Subject: missing messages >Date: Fri, 12 Jul 2002 08:34:11 -0400 >From: "Bryan Kate" >To: > >Greetings, > >I am working on a user space app with multiple usb devices, and I would >like to get notification when a device has been inserted/removed from >the system. I read the article >http://www.linuxjournal.com/article.php?sid=5604 and decided to use >this >method. > >I am able to get notification of add, but not remove... this is what is >did. > >Since my default /sbin/hotplug script forwards me to the >/etc/hotplug/usb.agent, I had to add a line to my usb.usermap file and >put a matching script into my /etc/hotplug/usb directory for it to run. > >It actually runs this script (much to my surprise) and I am testing it >by having it echo out the environment variables to a messages file. For >some reason, I am only getting notification when I "add" a device, and >it does nothing when I pull it out... any ideas on how to get this >"remove" action message to come through? > > > I met this problem few days ago. Check usb.agent, only $REMOVER works for "remove". They just made the change and don't tell you! cheers, Ming ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Gadgets, caffeine, t-shirts, fun stuff. http://thinkgeek.com/sf _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel