Kay Sievers | ec9611d | 2008-06-26 17:28:13 +0200 | [diff] [blame] | 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 | |
Kay Sievers | 24239de | 2008-11-20 02:26:13 +0100 | [diff] [blame^] | 6 | SUBSYSTEMS=="usb", IMPORT{program}="usb_id --export" |
| 7 | KERNEL=="video*", ENV{ID_SERIAL}=="?*", SYMLINK+="v4l/by-id/$env{ID_BUS}-$env{ID_SERIAL}-video-index$attr{index}" |
| 8 | |
Kay Sievers | ec9611d | 2008-06-26 17:28:13 +0200 | [diff] [blame] | 9 | # check for valid "index" number |
| 10 | TEST!="index", GOTO="persistent_v4l_end" |
| 11 | ATTR{index}!="?*", GOTO="persistent_v4l_end" |
| 12 | |
| 13 | IMPORT{program}="path_id %p" |
| 14 | ENV{ID_PATH}=="?*", KERNEL=="video*|vbi*", SYMLINK+="v4l/by-path/$env{ID_PATH}-video-index$attr{index}" |
| 15 | ENV{ID_PATH}=="?*", KERNEL=="audio*", SYMLINK+="v4l/by-path/$env{ID_PATH}-audio-index$attr{index}" |
| 16 | |
| 17 | LABEL="persistent_v4l_end" |