summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-07-25 19:09:44 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-07-25 19:09:44 +0000
commit7fd927d471d7c9c1f8834449fd5a8632df019bc9 (patch)
tree53fcbe45a1a648767ae6b59e60d63e0e43786b38 /perl-install
parent80ae90023e02005b20000279a72443853118c064 (diff)
downloaddrakx-7fd927d471d7c9c1f8834449fd5a8632df019bc9.tar
drakx-7fd927d471d7c9c1f8834449fd5a8632df019bc9.tar.gz
drakx-7fd927d471d7c9c1f8834449fd5a8632df019bc9.tar.bz2
drakx-7fd927d471d7c9c1f8834449fd5a8632df019bc9.tar.xz
drakx-7fd927d471d7c9c1f8834449fd5a8632df019bc9.zip
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
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/service_harddrake6
1 files changed, 1 insertions, 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);