aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2013-03-26 13:20:18 -0700
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2013-03-26 13:20:18 -0700
commite9699017636763ae8695f0a58e531935bdaec5b6 (patch)
tree1ef41ab47a3f3d7cda875a946b264496203623e5
parentUpdate. (diff)
downloadhwids-e9699017636763ae8695f0a58e531935bdaec5b6.tar.gz
hwids-e9699017636763ae8695f0a58e531935bdaec5b6.tar.bz2
hwids-e9699017636763ae8695f0a58e531935bdaec5b6.zip
Upstream's a bunch of chipmunks.hwids-20130326.1
-rw-r--r--udev-hwdb-update.pl14
1 files changed, 7 insertions, 7 deletions
diff --git a/udev-hwdb-update.pl b/udev-hwdb-update.pl
index 5782bb5..37d3556 100644
--- a/udev-hwdb-update.pl
+++ b/udev-hwdb-update.pl
@@ -7,7 +7,7 @@ sub usb_vendor {
my $vendor;
open(IN, "<", "usb.ids");
- open(OUT, ">", "20-usb-vendor-product.hwdb");
+ open(OUT, ">", "20-usb-vendor-model.hwdb");
print(OUT "# This file is part of systemd.\n" .
"#\n" .
"# Data imported from: http://www.linux-usb.org/usb.ids\n");
@@ -26,11 +26,11 @@ sub usb_vendor {
$line =~ m/^\t([0-9a-f]{4})\s*(.+)$/;
if (defined $1) {
- my $product = uc $1;
+ my $model = uc $1;
my $text = $2;
print(OUT "\n");
- print(OUT "usb:v" . $vendor . "p" . $product . "*\n");
- print(OUT " ID_PRODUCT_FROM_DATABASE=" . $text . "\n");
+ print(OUT "usb:v" . $vendor . "p" . $model . "*\n");
+ print(OUT " ID_MODEL_FROM_DATABASE=" . $text . "\n");
}
}
@@ -109,7 +109,7 @@ sub pci_vendor {
my $device;
open(IN, "<", "pci.ids");
- open(OUT, ">", "20-pci-vendor-product.hwdb");
+ open(OUT, ">", "20-pci-vendor-model.hwdb");
print(OUT "# This file is part of systemd.\n" .
"#\n" .
"# Data imported from: http://pci-ids.ucw.cz/v2.2/pci.ids\n");
@@ -133,7 +133,7 @@ sub pci_vendor {
my $text = $2;
print(OUT "\n");
print(OUT "pci:v0000" . $vendor . "d0000" . $device . "*\n");
- print(OUT " ID_PRODUCT_FROM_DATABASE=" . $text . "\n");
+ print(OUT " ID_MODEL_FROM_DATABASE=" . $text . "\n");
next;
}
@@ -144,7 +144,7 @@ sub pci_vendor {
my $text = $3;
print(OUT "\n");
print(OUT "pci:v0000" . $vendor . "d0000" . $device . "sv0000" . $sub_vendor . "sd0000" . $sub_device . "*\n");
- print(OUT " ID_PRODUCT_FROM_DATABASE=" . $text . "\n");
+ print(OUT " ID_MODEL_FROM_DATABASE=" . $text . "\n");
}
}