X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=udev.config;h=3eb688a3a0b5fcc4ae2a730452a36a6ca5ace7e9;hp=8d77099ca827314d129423c21abc0be468e397d4;hb=a86d6f567289ab546ebb06629f2d9b25555e0414;hpb=c34c7c5018a4023d39f6ea4c778218e0d3e0f035 diff --git a/udev.config b/udev.config index 8d77099ca..3eb688a3a 100644 --- a/udev.config +++ b/udev.config @@ -1,13 +1,18 @@ -# 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.) # -# 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