42
# New section, check the values remembered from the previous
43
# If the section defined a name, and we don't have one, and the
44
# section described an input device, store the name and serial
45
if (match(seckernel, "input") != 0 && secname != "" && name == "") {
49
# If the section defined a vendor (for USB devices), and we don't
50
# have one, store the vendor and product
51
if (secvendor != "" && vendor == "") {
56
# Clear all section values before processing next section
65
print "DEVICE=\"" kernel "\"";
66
print "NAME=\"" name "\"";
67
print "SERIAL=\"" serial "\"";
68
print "VENDOR=\"" vendor "\"";
69
print "PRODUCT=\"" product "\"";