Submitted By: Joe Ciccone Date: 2007-01-12 Initial Package Version: 1.0 Upstream Status: Submitted Origin: Joe Ciccone Description: Updates the awk script that generates the udev rules to a format that is compatible with newer version of udev. --- lomoco-1.0/udev/toudev.awk.orig 2007-01-12 16:46:22.000000000 -0500 +++ lomoco-1.0/udev/toudev.awk 2007-01-12 16:52:55.000000000 -0500 @@ -1,20 +1,12 @@ #!/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 "" } $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\"" -} - -END { - print "" - print "LABEL=\"lomoco_end\"" + print "SUBSYSTEM==\"usb\", ACTION==\"add\", SYSFS{idVendor}==\"046d\", " \ + "SYSFS{idProduct}==\"" substr($1, index($1, "x")+1) \ + "\", RUN+=\"lomoco\"" } -