X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udev.config;h=7e67d3a3b47ba3fd178af5c6ffc81ac33c50f6fa;hb=c076a2bde406e617ebfeda6b921d1db89eb1a9f6;hp=324c11e55f2aff170528497c8b8d27f02f4e4bb7;hpb=85f3a7c3e0fbda61dde22d89a0dd74b49cc58d07;p=elogind.git diff --git a/udev.config b/udev.config index 324c11e55..7e67d3a3b 100644 --- a/udev.config +++ b/udev.config @@ -1,12 +1,21 @@ -# There are a number of modifiers that are allowed to be used in the NAME field. +# There are a number of modifiers that are allowed to be used in the NAME or PROGRAM fields. # They provide the following subsitutions: # %n - the "kernel number" of the device. # for example, 'sda3' has a "kernel number" of '3' # %M - the kernel major number for the device # %m - the kernel minor number for the device +# %b - the bus id for the device +# %c - the return value for the CALLOUT program (note, this doesn't work within +# the PROGRAM field for the obvious reason.) +# %D - use the devfs style disk name for this device. +# For partitions, this will result in 'part%n' +# If this is not a partition, it will result in 'disk' # -# My usb camera... +# Looking for scsi bus id 42:0:0:1 +CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n test-%b", ID="test-42:0:0:1", NAME="%c" + +# A usb camera. LABEL, BUS="usb", vendor="FUJIFILM", NAME="camera%n" # USB Epson printer to be called lp_epson @@ -30,5 +39,5 @@ TOPOLOGY, BUS="usb", place="2.4", NAME="mouse2" # ttyUSB1 should always be called visor REPLACE, KERNEL="ttyUSB1", NAME="visor" -#REPLACE, KERNEL="ttyUSB0", NAME="pl2303" +REPLACE, KERNEL="ttyUSB0", NAME="pl2303"