File lomoco-udev-1030.diff of Package lomoco

Index: udev/toudev.awk
===================================================================
--- udev/toudev.awk.orig
+++ udev/toudev.awk
@@ -3,13 +3,15 @@ BEGIN {
 	FS = ","
 	print "ACTION != \"add\", GOTO=\"lomoco_end\""
 	print "SUBSYSTEM != \"usb\", GOTO=\"lomoco_end\""
-	print "SYSFS{idVendor} != \"046d\", GOTO=\"lomoco_end\""
+	print "ENV{DEVTYPE} != \"usb_device\", GOTO=\"lomoco_end\""
+	print "ATTR{idVendor} != \"046d\", GOTO=\"lomoco_end\""
+
 	print ""
 }
 
 $1 ~ /0xc[a-f0-9][a-f0-9][a-f0-9]/ {
     print "# " substr($3, index($3, "\"")) ", " $2
-    print "SYSFS{idProduct}==\"" substr($1, index($1, "x")+1) \
+    print "ATTR{idProduct}==\"" substr($1, index($1, "x")+1) \
 	  "\", RUN=\"lomoco\""
 }