From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Borzenkov Date: Wed, 25 Jan 2006 19:03:18 +0000 Subject: Re: DEVLINKS and DEVNAME variables in RUN rules Message-Id: <200601252203.37135.arvidjaar@mail.ru> 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 25 January 2006 21:18, Andrey Borzenkov wrote: > > OK the following patch documents this difference (and the fact that RUN is > using substitutons at all). oops, messed up with git and did not received updates. Here it is against 082. - -andrey Subject: [PATCH] Document when substitutions are applied for RUN and other keys From: Andrey Borzenkov Signed-off-by: Andrey Borzenkov - --- udev.7 | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/udev.7 b/udev.7 index a7e2f5a..f557698 100644 - --- a/udev.7 +++ b/udev.7 @@ -164,10 +164,15 @@ The \fBNAME\fR, \fBSYMLINK\fR, \fBPROGRAM\fR, - -\fBOWNER\fR - -and +\fBOWNER\fR, \fBGROUP\fR - -fields support simple printf\-like string substitutions: +and +\fBRUN\fR +fields support simple printf\-like string substitutions. For \fBRUN\fR they +are applied immediately before program is launched, after all rules have +been processed. It allows use of complete environment set up by earlier rules +including exported variables. For all other fields substitutions are applied +when rule is being processed. The supported substitutions are: .TP \fB$kernel\fR, \fB%k\fR The kernel name for this device. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFD18uIR6LMutpd94wRAkP5AJ0TYQML1hwbGSSfyxlUV61cSwTcAQCbBDoY GFvHdLzdNgQH5ZJqiIaJ2sg=Zh6P -----END PGP SIGNATURE----- ------------------------------------------------------- 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