60-persistent-v4l.rules revision 20d83f2f436ba0cbc522270526f2cd36b5371c3f
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen# do not edit this file, it will be overwritten on update
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen
12b42c76672a66c2d4ea7212c14f8f1b5a62b78dTom GundersenACTION=="remove", GOTO="persistent_v4l_end"
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenSUBSYSTEM!="video4linux", GOTO="persistent_v4l_end"
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenENV{MAJOR}=="", GOTO="persistent_v4l_end"
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenIMPORT{program}="v4l_id $devnode"
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenSUBSYSTEMS=="usb", IMPORT{builtin}="usb_id"
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenKERNEL=="video*", ENV{ID_SERIAL}=="?*", SYMLINK+="v4l/by-id/$env{ID_BUS}-$env{ID_SERIAL}-video-index$attr{index}"
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen# check for valid "index" number
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenTEST!="index", GOTO="persistent_v4l_end"
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenATTR{index}!="?*", GOTO="persistent_v4l_end"
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenIMPORT{builtin}="path_id"
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenENV{ID_PATH}=="?*", KERNEL=="video*|vbi*", SYMLINK+="v4l/by-path/$env{ID_PATH}-video-index$attr{index}"
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenENV{ID_PATH}=="?*", KERNEL=="audio*", SYMLINK+="v4l/by-path/$env{ID_PATH}-audio-index$attr{index}"
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenLABEL="persistent_v4l_end"
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen