blob: fb961b79e0ca763c2bb27b485a4bea36948e9fd4 [file] [log] [blame]
Kay Sieversec9611d2008-06-26 17:28:13 +02001# do not edit this file, it will be overwritten on update
2
3ACTION!="add|change", GOTO="persistent_v4l_end"
4SUBSYSTEM!="video4linux", GOTO="persistent_v4l_end"
5
Kay Sievers24239de2008-11-20 02:26:13 +01006SUBSYSTEMS=="usb", IMPORT{program}="usb_id --export"
7KERNEL=="video*", ENV{ID_SERIAL}=="?*", SYMLINK+="v4l/by-id/$env{ID_BUS}-$env{ID_SERIAL}-video-index$attr{index}"
8
Kay Sieversec9611d2008-06-26 17:28:13 +02009# check for valid "index" number
10TEST!="index", GOTO="persistent_v4l_end"
11ATTR{index}!="?*", GOTO="persistent_v4l_end"
12
13IMPORT{program}="path_id %p"
14ENV{ID_PATH}=="?*", KERNEL=="video*|vbi*", SYMLINK+="v4l/by-path/$env{ID_PATH}-video-index$attr{index}"
15ENV{ID_PATH}=="?*", KERNEL=="audio*", SYMLINK+="v4l/by-path/$env{ID_PATH}-audio-index$attr{index}"
16
17LABEL="persistent_v4l_end"