summaryrefslogtreecommitdiff
path: root/udev.rules
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-12-22 22:40:19 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:10 -0700
commit170ae44e7d45e5907668cd1eab740a84eb79c70a (patch)
tree40c550ea54e0808b01625fbfe76cbde3a500f014 /udev.rules
parentaa9c2a1e25756399227cc562ad690eaf023a93ff (diff)
[PATCH] add documentation for the new '%k' modifier (kernel name replacement)
Diffstat (limited to 'udev.rules')
-rw-r--r--udev.rules3
1 files changed, 2 insertions, 1 deletions
diff --git a/udev.rules b/udev.rules
index 618737ffd8..06d5842c2a 100644
--- a/udev.rules
+++ b/udev.rules
@@ -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"