chiark / gitweb /
5a317b6c18fd634cc9d83db5302e3ae82db294c7
[elogind.git] / etc / udev / debian / 60-persistent-v4l.rules
1 ACTION!="add|change",                   GOTO="persistent_v4l_end"
2 SUBSYSTEM!="video4linux",               GOTO="persistent_v4l_end"
3
4 # ignore devices without a valid "index" number
5 TEST!="index",                          GOTO="persistent_v4l_end"
6 ATTR{index}!="?*",                      GOTO="persistent_v4l_end"
7
8 IMPORT{program}="path_id $devpath"
9
10 KERNEL=="video*|vbi*",                  ENV{ID_PATH}=="?*", \
11         SYMLINK+="v4l/by-path/$env{ID_PATH}-video-index$attr{index}"
12
13 KERNEL=="audio*",                       ENV{ID_PATH}=="?*", \
14         SYMLINK+="v4l/by-path/$env{ID_PATH}-audio-index$attr{index}"
15
16 LABEL="persistent_v4l_end"
17