summarylogtreecommitdiffstats
path: root/mk-udev-hwdb
blob: cfb359000fa68aa2eef8a02058aeaacc97137aff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/gawk -f
BEGIN {
	FS = ",";
	print "# brscan4-supported scanners (or interfaces of MFD)";
	print "";
}
NF >= 3 && $1 ~ /^0[xX][[:xdigit:]]{4}$/ {
	id = toupper( substr( $1, 3 ));
	name = $4
	gsub("\"", "", name)
	print "# " name;
	print "usb:v04F9p" id "*";
	print " libsane_matched=yes";
	print "";
}