mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 14:55:26 +03:00
[PATCH] add documentation for the new '%k' modifier (kernel name replacement)
This commit is contained in:
parent
aa9c2a1e25
commit
170ae44e7d
3
udev.8
3
udev.8
@ -142,6 +142,9 @@ fields support simple printf-like string substitution:
|
||||
The "kernel number" of the device.
|
||||
for example, 'sda3' has a "kernel number" of '3'
|
||||
.TP
|
||||
.B %k
|
||||
The "kernel name" for the device.
|
||||
.TP
|
||||
.B %M
|
||||
The kernel major number for the device.
|
||||
.TP
|
||||
|
@ -2,6 +2,7 @@
|
||||
# They provide the following subsitutions:
|
||||
# %n - the "kernel number" of the device.
|
||||
# for example, 'sda3' has a "kernel number" of '3'
|
||||
# %k - the kernel name for the device.
|
||||
# %M - the kernel major number for the device
|
||||
# %m - the kernel minor number for the device
|
||||
# %b - the bus id for the device
|
||||
@ -16,7 +17,7 @@
|
||||
CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n test-%b", ID="test-42:0:0:1", NAME="%c"
|
||||
|
||||
# A usb camera.
|
||||
LABEL, BUS="usb", SYSFS_vendor="FUJIFILM", NAME="camera%n"
|
||||
LABEL, BUS="usb", SYSFS_vendor="FUJIFILM", SYSFS_model="M100", NAME="camera%n"
|
||||
|
||||
# USB Epson printer to be called lp_epson
|
||||
LABEL, BUS="usb", SYSFS_serial="HXOLL0012202323480", NAME="lp_epson"
|
||||
|
Loading…
Reference in New Issue
Block a user