summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/detect_devices.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index f53f4d750..7740f9852 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -245,7 +245,7 @@ sub getIDE() {
my $num = ord (($d =~ /(.)$/)[0]) - ord 'a';
my ($vendor, $model) = map {
- if_($info =~ /^$_\b\s*(.*)/, $eide_hds{$_}, $1);
+ if_($info =~ /^$_\b(-|\s*)(.*)/, $eide_hds{$_}, $2);
} keys %eide_hds;
my ($channel, $id) = ($num / 2, $num % 2);