19.2. Automization with NAME and SYMLINK

The parameters NAME and SYMLINK allow the use of operators for automatic assignments. These operators refer to kernel data on the corresponding device. A simple example illustrates the procedure:

BUS="usb", SYSFS{vendor}="abc", SYSFS{model}="xyz", NAME="camera%n"

The operator %n in the name is replaced by the number of the camera device, such as camera0 or camera1. Another useful operator is %k, which is replaced by the standard device name of the kernel, for example, hda1. Find a list of all the operators in the man page for udev.