19.2. Automation 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. You may also call an external program in udev rules and use the string that is returned in the NAME and SYMLINK values. Find a list of all the operators in the man page for udev.

SUSE LINUX Administration Guide 9.3