1 |
# /etc/udev/rules/60-persistent-v4l.rules: device naming rules for udev |
# /etc/udev/rules/60-persistent-v4l.rules: device naming rules for udev |
2 |
# $Header: /root/magellan-cvs/src/udev/udev-persistent-v4l.rules.magellan,v 1.1 2008-12-22 20:31:37 niro Exp $ |
# $Header: /root/magellan-cvs/src/udev/udev-persistent-v4l.rules.magellan,v 1.2 2009-04-24 14:19:13 niro Exp $ |
3 |
# |
# |
4 |
# There are a number of modifiers that are allowed to be used in some |
# There are a number of modifiers that are allowed to be used in some |
5 |
# of the different fields. They provide the following subsitutions: |
# of the different fields. They provide the following subsitutions: |
21 |
ACTION!="add|change", GOTO="persistent_v4l_end" |
ACTION!="add|change", GOTO="persistent_v4l_end" |
22 |
SUBSYSTEM!="video4linux", GOTO="persistent_v4l_end" |
SUBSYSTEM!="video4linux", GOTO="persistent_v4l_end" |
23 |
|
|
24 |
SUBSYSTEMS=="usb", IMPORT{program}="usb_id --export" |
SUBSYSTEMS=="usb", IMPORT{program}="usb_id --export %p" |
25 |
KERNEL=="video*", ENV{ID_SERIAL}=="?*", SYMLINK+="v4l/by-id/$env{ID_BUS}-$env{ID_SERIAL}-video-index$attr{index}" |
KERNEL=="video*", ENV{ID_SERIAL}=="?*", SYMLINK+="v4l/by-id/$env{ID_BUS}-$env{ID_SERIAL}-video-index$attr{index}" |
26 |
|
|
27 |
# check for valid "index" number |
# check for valid "index" number |