From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Tue, 15 Mar 2005 14:44:48 +0000 Subject: Re: embedded hotplugging Message-Id: <1110897889.6630.57.camel@localhost.localdomain> MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-WLYIFMlwmFm/N3T28PMm" List-Id: References: In-Reply-To: To: linux-hotplug@vger.kernel.org --=-WLYIFMlwmFm/N3T28PMm Content-Type: text/plain Content-Transfer-Encoding: 7bit On Tue, 2005-03-15 at 14:30 +0100, andreas.walden@philips.com wrote: > Hi, > > I'm working on an CSB337 Cogent Board with ATM AT91RM9200 and Linux > 2.6.11-rc5. I have installed hotplug-ng an I want to start a Programm when > plugging in USB device on my Board... > > I' ve put the Link 10-usb2serial.hotplug in /etc/hotplug.d/input/ but the > ps output says that it is running twice. So what do I make wrong??? You may record the events with something like the attached script by placing it into: /etc/hotplug.d/default/ and look for what devices the events are. Your script will need to check if it is invoked for the right one. Kay --=-WLYIFMlwmFm/N3T28PMm Content-Disposition: inline; filename=00-log.hotplug Content-Type: application/x-shellscript; name=00-log.hotplug Content-Transfer-Encoding: 7bit #!/bin/sh echo -e "--------$SEQNUM--------\n"\ `date +%s` $ACTION $DEVPATH"\n"\ `env`\ "\n--------$SEQNUM--------\n" >> /tmp/hotplug_d.log --=-WLYIFMlwmFm/N3T28PMm-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ 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