From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Blin Date: Wed, 25 Jan 2006 18:25:26 +0000 Subject: Re: DEVLINKS and DEVNAME variables in RUN rules Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Kay Sievers writes: > On Tue, Jan 24, 2006 at 09:05:51PM +0300, Andrey Borzenkov wrote: >> On Tuesday 24 January 2006 19:24, Olivier Blin wrote: >> > I'd like to use the DEVNAME and DEVLINKS (thanks Kay) environment >> > variables in a RUN rule. Unfortunately, they're not exported yet when >> > the command to be executed is computed (i.e. when the format is >> > applied). So, for now, I'm using a dumb trick: >> > RUN+="/bin/sh -c '/sbin/pam_console_setowner $$DEVICE $$DEVNAME >> > $$DEVLINKS'" >> > >> > Would it be possible to have the format applied right before the RUN >> > command is run? >> > >> >> Like this? This seems to work for me: >> >> Jan 24 21:04:24 cooker udevd-event[16049]: name_list_add: adding >> '/sbin/pam_console_setowner $env{DEVICE} $env{DEVNAME} $env{DEVLINKS}' > > Applied. Thanks (and spasiba)! By the way, is there any place where this new 082 release has been announced? -- Olivier Blin - Mandriva ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&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