From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Borzenkov Date: Tue, 24 Oct 2006 02:45:38 +0000 Subject: Re: Ordering hotplug scripts vs. udev device node creation Message-Id: <200610240645.44542.arvidjaar@mail.ru> List-Id: References: <727e50150610231226p42b95cc4j686b31332c1d1c6e@mail.gmail.com> In-Reply-To: <727e50150610231226p42b95cc4j686b31332c1d1c6e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug-devel@lists.sourceforge.net Cc: Aaron Cohen , linux-kernel@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 23 October 2006 23:26, Aaron Cohen wrote: > Adding a USB device seems to work correctly (more or less, my script > is invoked a few too many times but I think I can figure out how to > adjust my rule) using this. I'm having trouble now with removal > though. By the time my script runs the device file has been removed > by udev and I can't look it up through udevinfo any longer. I need to > know what the name of the device file was so I can tell gpsd to stop > monitoring it. > > Any ideas? udev sets DEVNAME and DEVLINKS environment before calling RUN program. You can either pass them directly like RUN+="/your/program env{DEVNAME} env{DEVLINKS}" or your program can get them from environment. It unfortunately seems to be not documented. HTH - -andrey -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFPX5YR6LMutpd94wRAsDrAJ92kOTrofNo3kg/5xW0C6bzm5TlDACg0/NG K4R+tBQzCHJSN+XW5WBPghE=ZIet -----END PGP SIGNATURE----- ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ 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