Package: lomoco Severity: normal Tags: upstream I am attaching an updated version of the udev/toudev.awk file which will generate a much improved rules file, easier to read and a bit more efficient. Please push this change upstream too.
You will notice that I removed the path from the RUN rule. /etc/udev/scripts/ has been deprecated in favour of /lib/udev/, which is now the default directory. Please move the lomoco script there. Do not forget that /etc/udev/scripts/lomoco is a conffile, so the package MUST manually delete it from preinst or postinst. -- ciao, Marco
#!/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\""
}
signature.asc
Description: Digital signature

