Start a new entry. string is an arbitrary string used for pretty printing.
product id
Product Id
vendor id
Vendor Id
release id
Release Id, also called revision Id sometimes.
class id
Device Class
subclass id
Device Subclass
protocol id
Device Protocol
devname string
Device name, for example umass2, or ums0. These device names can contain regular expressions. See regex(3) and re_format(7). The device name that is matched can be used in the commands below through adding ${DEVNAME} somewhere in that string.
String arguments may be quoted. If a string argument contains a space or tab character it needs to be enclosed in single or double quotes. If an argument contains a single or double quote, that quote needs to be enclosed in double or single quotes respectively. See below for examples.
Numeric arguments can either be specified in decimal (42), octal (052) or hexadecimal (0x2a).
The values for the fields product, vendor, release, class, subclass and protocol can be retrieved by killing the usbd daemon and running it with the -d and -v flags.
Commands to be executed when the action is matched:
attach string
Shell command to execute when a device is attached.
detach string
Shell command to execute when a device is detached.