From 7fd927d471d7c9c1f8834449fd5a8632df019bc9 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 25 Jul 2002 19:09:44 +0000 Subject: simplify: - we don't need to set media_type, we don't use it - mouse and mass storage media use the same key, let merge their code path --- perl-install/standalone/service_harddrake | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index bfc652d13..d66b6fc43 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -39,11 +39,7 @@ foreach (@harddrake::data::tree) { my %ID = map { my $i = $_; my $name = do { - if ($item eq "Mouse") { - $i->{media_type} = "MOUSE"; - $i->{device}; - } elsif (defined $i->{device}) { - $i->{media_type} = "MASS_STORAGE_MEDIA"; + if (defined $i->{device}) { $i->{device}; } else { join ':', map { $i->{$_} } qw(vendor id subvendor subid); -- cgit v1.2.1