mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 17:06:39 +09:00
man page: document when substitutions are applied for RUN and other keys
This commit is contained in:
committed by
Kay Sievers
parent
4cfdeaf3bf
commit
864412e02d
@@ -353,8 +353,12 @@
|
||||
</variablelist>
|
||||
|
||||
<para>The <option>NAME</option>, <option>SYMLINK</option>, <option>PROGRAM</option>,
|
||||
<option>OWNER</option> and <option>GROUP</option> fields support simple
|
||||
printf-like string substitutions:</para>
|
||||
<option>OWNER</option>, <option>GROUP</option> and <option>RUN</option>
|
||||
fields support simple printf-like string substitutions. The <option>RUN</option>
|
||||
format chars gets applied after all rules have been processed, right before the program
|
||||
is executed. It allows the use of the complete environment set by earlier matching
|
||||
rules. For all other fields, substitutions are applied while the individual rule is
|
||||
being processed. The available substitutions are:</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><option>$kernel</option>, <option>%k</option></term>
|
||||
|
||||
9
udev.7
9
udev.7
@@ -164,10 +164,13 @@ 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. The
|
||||
\fBRUN\fR
|
||||
format chars gets applied after all rules have been processed, right before the program is executed. It allows the use of the complete environment set by earlier matching rules. For all other fields, substitutions are applied while the individual rule is being processed. The available substitutions are:
|
||||
.TP
|
||||
\fB$kernel\fR, \fB%k\fR
|
||||
The kernel name for this device.
|
||||
|
||||
Reference in New Issue
Block a user