chiark / gitweb /
[PATCH] add documentation for the new '%k' modifier (kernel name replacement)
authorgreg@kroah.com <greg@kroah.com>
Tue, 23 Dec 2003 06:40:19 +0000 (22:40 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:10 +0000 (21:13 -0700)
udev.8
udev.rules

diff --git a/udev.8 b/udev.8
index 5e411282fff4b3f1b20e09ebc479565aa1dfe8b7..f2006c42dc60aef84065b69cab2ed65506660a5e 100644 (file)
--- a/udev.8
+++ b/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
index 618737ffd8d86affcfe5df93d03f0bc1b213ed84..06d5842c2a5fbf8eade17305a5a7250636abfbf8 100644 (file)
@@ -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"