chiark / gitweb /
rules: run vol_id on opticals only if media is found
[elogind.git] / rules / rules.d / 60-persistent-v4l.rules
1 # do not edit this file, it will be overwritten on update
2
3 ACTION!="add|change", GOTO="persistent_v4l_end"
4 SUBSYSTEM!="video4linux", GOTO="persistent_v4l_end"
5
6 # check for valid "index" number
7 TEST!="index", GOTO="persistent_v4l_end"
8 ATTR{index}!="?*", GOTO="persistent_v4l_end"
9
10 IMPORT{program}="path_id %p"
11 ENV{ID_PATH}=="?*", KERNEL=="video*|vbi*", SYMLINK+="v4l/by-path/$env{ID_PATH}-video-index$attr{index}"
12 ENV{ID_PATH}=="?*", KERNEL=="audio*", SYMLINK+="v4l/by-path/$env{ID_PATH}-audio-index$attr{index}"
13
14 LABEL="persistent_v4l_end"