summaryrefslogtreecommitdiff
path: root/etc/udev/debian/60-persistent-v4l.rules
blob: 5a317b6c18fd634cc9d83db5302e3ae82db294c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ACTION!="add|change",			GOTO="persistent_v4l_end"
SUBSYSTEM!="video4linux",		GOTO="persistent_v4l_end"

# ignore devices without a valid "index" number
TEST!="index",				GOTO="persistent_v4l_end"
ATTR{index}!="?*",			GOTO="persistent_v4l_end"

IMPORT{program}="path_id $devpath"

KERNEL=="video*|vbi*",			ENV{ID_PATH}=="?*", \
	SYMLINK+="v4l/by-path/$env{ID_PATH}-video-index$attr{index}"

KERNEL=="audio*",			ENV{ID_PATH}=="?*", \
	SYMLINK+="v4l/by-path/$env{ID_PATH}-audio-index$attr{index}"

LABEL="persistent_v4l_end"