60-persistent-v4l.rules 769 B

1234567891011121314151617181920
  1. # do not edit this file, it will be overwritten on update
  2. ACTION=="remove", GOTO="persistent_v4l_end"
  3. SUBSYSTEM!="video4linux", GOTO="persistent_v4l_end"
  4. ENV{MAJOR}=="", GOTO="persistent_v4l_end"
  5. IMPORT{program}="v4l_id $devnode"
  6. SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id"
  7. KERNEL=="video*", ENV{ID_SERIAL}=="?*", SYMLINK+="v4l/by-id/$env{ID_BUS}-$env{ID_SERIAL}-video-index$attr{index}"
  8. # check for valid "index" number
  9. TEST!="index", GOTO="persistent_v4l_end"
  10. ATTR{index}!="?*", GOTO="persistent_v4l_end"
  11. IMPORT{builtin}="path_id"
  12. ENV{ID_PATH}=="?*", KERNEL=="video*|vbi*", SYMLINK+="v4l/by-path/$env{ID_PATH}-video-index$attr{index}"
  13. ENV{ID_PATH}=="?*", KERNEL=="audio*", SYMLINK+="v4l/by-path/$env{ID_PATH}-audio-index$attr{index}"
  14. LABEL="persistent_v4l_end"