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 | |
Kay Sievers | 4b06c40 | 2010-04-12 16:52:41 +0200 | [diff] [blame] | 3 | ACTION=="remove", GOTO="persistent_v4l_end" |
Kay Sievers | ec9611d | 2008-06-26 17:28:13 +0200 | [diff] [blame] | 4 | SUBSYSTEM!="video4linux", GOTO="persistent_v4l_end" |
Kay Sievers | c5a9680 | 2009-06-16 18:41:05 +0200 | [diff] [blame] | 5 | ENV{MAJOR}=="", GOTO="persistent_v4l_end" |
| 6 | |
Kay Sievers | 220893b | 2012-01-01 04:21:15 +0100 | [diff] [blame] | 7 | IMPORT{program}="v4l_id $devnode" |
Kay Sievers | ec9611d | 2008-06-26 17:28:13 +0200 | [diff] [blame] | 8 | |
Kay Sievers | d7867b3 | 2011-08-05 02:00:30 +0200 | [diff] [blame] | 9 | SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id" |
Kay Sievers | 24239de | 2008-11-20 02:26:13 +0100 | [diff] [blame] | 10 | KERNEL=="video*", ENV{ID_SERIAL}=="?*", SYMLINK+="v4l/by-id/$env{ID_BUS}-$env{ID_SERIAL}-video-index$attr{index}" |
| 11 | |
Kay Sievers | ec9611d | 2008-06-26 17:28:13 +0200 | [diff] [blame] | 12 | # check for valid "index" number |
| 13 | TEST!="index", GOTO="persistent_v4l_end" |
| 14 | ATTR{index}!="?*", GOTO="persistent_v4l_end" |
| 15 | |
Kay Sievers | d7867b3 | 2011-08-05 02:00:30 +0200 | [diff] [blame] | 16 | IMPORT{builtin}="path_id" |
Kay Sievers | 1e5e057 | 2009-05-14 00:32:25 +0200 | [diff] [blame] | 17 | ENV{ID_PATH}=="?*", KERNEL=="video*|vbi*", SYMLINK+="v4l/by-path/$env{ID_PATH}-video-index$attr{index}" |
Kay Sievers | ec9611d | 2008-06-26 17:28:13 +0200 | [diff] [blame] | 18 | ENV{ID_PATH}=="?*", KERNEL=="audio*", SYMLINK+="v4l/by-path/$env{ID_PATH}-audio-index$attr{index}" |
| 19 | |
| 20 | LABEL="persistent_v4l_end" |