Initial import

This commit is contained in:
Heinrich Siebmanns committed 2015-06-18 09:35:52 +02:00
commit 1d9f9513c8
4 files changed
+122

No files matched your search

Executable
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/gawk -f
BEGIN {
FS = ",";
print "ACTION==\"add\", ATTR{idVendor}==\"04f9\", GOTO=\"brscan4\"";
print "GOTO=\"brscan4_end\"";
print "LABEL=\"brscan4\"";
}
NF >= 3 && $1 ~ /^ *0[xX][[:xdigit:]]+ *$/ {
id = "000" tolower( substr( $1, 3 ));
id = substr( id, length( id ) - 3 );
print "ATTR{idProduct}==\"" id "\", MODE=\"0664\", GROUP=\"scanner\", ENV{libsane_matched}=\"yes\"";
}
END {
print "LABEL=\"brscan4_end\"";
}