SUBSYSTEM!="video4linux", GOTO="persistent_video_end" ACTION!="add", GOTO="persistent_video_end" # usb devices SUBSYSTEMS=="usb", IMPORT{program}="usb_id --export" # by-id links, generic and for the event devices KERNEL=="video*", \ PROGRAM="/usr/local/bin/video_namer $attr{name}", \ SYMLINK+="video/by-name/%c" KERNEL=="video*", \ PROGRAM="/usr/local/bin/video_namer $attr{name}", \ SYMLINK+="video/by-device/$env{PHYSDEVBUS}$env{PHYSDEVPATH}/%c", \ LABEL="persistent_video_end"