summaryrefslogtreecommitdiff
path: root/hwdb/ids-update.pl
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-02-04 18:55:10 +0100
committerKay Sievers <kay@vrfy.org>2013-02-04 18:55:10 +0100
commitf2f1861383c5cf4c07a7c6098d7c0b7134f06d51 (patch)
tree99b614287d0e9eaf9fddca4344142a1c45a49943 /hwdb/ids-update.pl
parent2f8d077ece024b985f2501dc8c904c2d29967acb (diff)
hwdb: update
Diffstat (limited to 'hwdb/ids-update.pl')
-rwxr-xr-xhwdb/ids-update.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/hwdb/ids-update.pl b/hwdb/ids-update.pl
index 13596b85c3..5782bb51ef 100755
--- a/hwdb/ids-update.pl
+++ b/hwdb/ids-update.pl
@@ -219,6 +219,7 @@ sub oui {
open(IN, "<", "iab.txt");
while (my $line = <IN>) {
+ $line =~ s/^ +//;
$line =~ s/\s+$//;
$line =~ m/^([0-9A-F]{2})-([0-9A-F]{2})-([0-9A-F]{2})\s*\(hex\)\s*.+$/;
if (defined $1) {
@@ -241,6 +242,7 @@ sub oui {
open(IN, "<", "oui.txt");
while (my $line = <IN>) {
+ $line =~ s/^ +//;
$line =~ s/\s+$//;
$line =~ m/^([0-9A-F]{6})\s*\(base 16\)\s*(.+)$/;
if (defined $1) {