diff options
author | Heinrich Siebmanns | 2015-06-18 09:35:52 +0200 |
---|---|---|
committer | Heinrich Siebmanns | 2015-06-18 09:35:52 +0200 |
commit | 1d9f9513c8ef2b5f5075d45268c8a2219a73a817 (patch) | |
tree | 558ac003f3b8c9739e15a0d10fdceb0b95117187 /mk-udev-rules | |
download | aur-1d9f9513c8ef2b5f5075d45268c8a2219a73a817.tar.gz |
Initial import
Diffstat (limited to 'mk-udev-rules')
-rwxr-xr-x | mk-udev-rules | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mk-udev-rules b/mk-udev-rules new file mode 100755 index 000000000000..951ba28b9ad5 --- /dev/null +++ b/mk-udev-rules @@ -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\""; +} + |