]> git.ipfire.org Git - thirdparty/systemd.git/blame - rules.d/60-persistent-v4l.rules
dlfcn-util: add dlsym_many_and_warn() helper
[thirdparty/systemd.git] / rules.d / 60-persistent-v4l.rules
CommitLineData
ec9611dd
KS
1# do not edit this file, it will be overwritten on update
2
4b06c409 3ACTION=="remove", GOTO="persistent_v4l_end"
ec9611dd 4SUBSYSTEM!="video4linux", GOTO="persistent_v4l_end"
c5a9680e
KS
5ENV{MAJOR}=="", GOTO="persistent_v4l_end"
6
220893b3 7IMPORT{program}="v4l_id $devnode"
ec9611dd 8
d7867b31 9SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id"
24239ded
KS
10KERNEL=="video*", ENV{ID_SERIAL}=="?*", SYMLINK+="v4l/by-id/$env{ID_BUS}-$env{ID_SERIAL}-video-index$attr{index}"
11
ec9611dd
KS
12# check for valid "index" number
13TEST!="index", GOTO="persistent_v4l_end"
14ATTR{index}!="?*", GOTO="persistent_v4l_end"
15
d7867b31 16IMPORT{builtin}="path_id"
1e5e0573 17ENV{ID_PATH}=="?*", KERNEL=="video*|vbi*", SYMLINK+="v4l/by-path/$env{ID_PATH}-video-index$attr{index}"
ec9611dd
KS
18ENV{ID_PATH}=="?*", KERNEL=="audio*", SYMLINK+="v4l/by-path/$env{ID_PATH}-audio-index$attr{index}"
19
20LABEL="persistent_v4l_end"