change udev-hwdb entries to uppercase
This commit is contained in:
1 parent
24bbe17a27
commit
eea1d99ff6
2 files changed
+3
-3
No files matched your search
@@ -17,7 +17,7 @@ source=("https://download.brother.com/welcome/$pkg"
|
|||||||
mk-udev-hwdb)
|
mk-udev-hwdb)
|
||||||
md5sums=($pkg_md5sum
|
md5sums=($pkg_md5sum
|
||||||
'ccffb9a6f6d436b21be25b0241068981'
|
'ccffb9a6f6d436b21be25b0241068981'
|
||||||
'4a69fac9c0053277a9be8e2dd382f168')
|
'8966d38375d535028a63a6ef5f6104eb')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir"
|
cd "$srcdir"
|
||||||
|
|||||||
+2
-2
@@ -5,11 +5,11 @@ BEGIN {
|
|||||||
print "";
|
print "";
|
||||||
}
|
}
|
||||||
NF >= 3 && $1 ~ /^0[xX][[:xdigit:]]{4}$/ {
|
NF >= 3 && $1 ~ /^0[xX][[:xdigit:]]{4}$/ {
|
||||||
id = tolower( substr( $1, 3 ));
|
id = toupper( substr( $1, 3 ));
|
||||||
name = $4
|
name = $4
|
||||||
gsub("\"", "", name)
|
gsub("\"", "", name)
|
||||||
print "# " name;
|
print "# " name;
|
||||||
print "usb:v04f9p" id "*";
|
print "usb:v04F9p" id "*";
|
||||||
print " libsane_matched=yes";
|
print " libsane_matched=yes";
|
||||||
print "";
|
print "";
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user