--- lomoco-1.0/udev/toudev.awk 2006-03-01 15:10:04.000000000 +0100 +++ /home/skolima/Desktop/lomoco-1.0/udev/toudev.awk 2006-11-29 23:03:25.000000000 +0100 @@ -1,20 +1,23 @@ #!/bin/awk -f BEGIN { - FS = "," - print "ACTION != \"add\", GOTO=\"lomoco_end\"" - print "SUBSYSTEM != \"usb\", GOTO=\"lomoco_end\"" - print "SYSFS{idVendor} != \"046d\", GOTO=\"lomoco_end\"" - print "" + FS = "," + print "# udev.rules file for Logitech mouse control using lomoco" + print "#" + print "" + print "ACTION != \"add\", GOTO=\"lomoco_end\"" + print "SUBSYSTEM != \"usb_device\", 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) \ - "\", RUN=\"lomoco\"" + print "SYSFS{idVendor}==\"046d\", SYSFS{idProduct}==\"" substr($1, +index($1, "x")+1) \ + "\", RUN+=\"udev.lomoco\"" + print "" } END { - print "" - print "LABEL=\"lomoco_end\"" + print "" + print "LABEL=\"lomoco_end\"" } -