chiark / gitweb /
udev: don't mix static and dynamic libs
[elogind.git] / rules / 60-persistent-v4l.rules
1 # do not edit this file, it will be overwritten on update
2
3 ACTION=="remove", GOTO="persistent_v4l_end"
4 SUBSYSTEM!="video4linux", GOTO="persistent_v4l_end"
5 ENV{MAJOR}=="", GOTO="persistent_v4l_end"
6
7 IMPORT{program}="v4l_id $devnode"
8
9 SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id"
10 KERNEL=="video*", ENV{ID_SERIAL}=="?*", SYMLINK+="v4l/by-id/$env{ID_BUS}-$env{ID_SERIAL}-video-index$attr{index}"
11
12 # check for valid "index" number
13 TEST!="index", GOTO="persistent_v4l_end"
14 ATTR{index}!="?*", GOTO="persistent_v4l_end"
15
16 IMPORT{builtin}="path_id"
17 ENV{ID_PATH}=="?*", KERNEL=="video*|vbi*", SYMLINK+="v4l/by-path/$env{ID_PATH}-video-index$attr{index}"
18 ENV{ID_PATH}=="?*", KERNEL=="audio*", SYMLINK+="v4l/by-path/$env{ID_PATH}-audio-index$attr{index}"
19
20 LABEL="persistent_v4l_end"