summaryrefslogtreecommitdiffstats
path: root/perl-install/scanner.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/scanner.pm')
-rwxr-xr-xperl-install/scanner.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/scanner.pm b/perl-install/scanner.pm
index 7f843bc3e..08ac062a8 100755
--- a/perl-install/scanner.pm
+++ b/perl-install/scanner.pm
@@ -48,9 +48,10 @@ sub confScanner {
next if $line =~ /\$VENDOR/;
$line =~ s/\$PRODUCT/$product/g if $product;
next if $line =~ /\$PRODUCT/;
- $line =~ /^(\S+)LINE\s+(.*?)$/;
+ $line =~ /^(\S*)LINE\s+(.*?)$/;
my $linetype = $1;
$line = $2;
+ next if !$line;
if (!$linetype or
($linetype eq "USB" and ($port =~ /usb/i or $vendor)) or
($linetype eq "PARPORT" and !$vendor and