--- trunk/udev/udev-persistent-v4l.rules.magellan 2009/04/24 14:19:13 760 +++ trunk/udev/udev-persistent-v4l.rules.magellan 2009/10/13 10:46:20 884 @@ -1,5 +1,5 @@ # /etc/udev/rules/60-persistent-v4l.rules: device naming rules for udev -# $Header: /root/magellan-cvs/src/udev/udev-persistent-v4l.rules.magellan,v 1.2 2009-04-24 14:19:13 niro Exp $ +# $Header: /root/magellan-cvs/src/udev/udev-persistent-v4l.rules.magellan,v 1.3 2009-10-13 10:46:20 niro Exp $ # # There are a number of modifiers that are allowed to be used in some # of the different fields. They provide the following subsitutions: @@ -20,6 +20,9 @@ ACTION!="add|change", GOTO="persistent_v4l_end" SUBSYSTEM!="video4linux", GOTO="persistent_v4l_end" +ENV{MAJOR}=="", GOTO="persistent_v4l_end" + +IMPORT{program}="v4l_id $tempnode" SUBSYSTEMS=="usb", IMPORT{program}="usb_id --export %p" KERNEL=="video*", ENV{ID_SERIAL}=="?*", SYMLINK+="v4l/by-id/$env{ID_BUS}-$env{ID_SERIAL}-video-index$attr{index}"