From eb58e2187ee2897c889e0be00dd42ecd9a8fbda6 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 12 May 2005 07:04:38 +0000 Subject: fix PCMCIA controller reconfiguration (#15742) --- perl-install/standalone/service_harddrake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index fedd0fd58..50c0c9e04 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -145,8 +145,7 @@ foreach my $hw_class (@harddrake::data::tree) { $modules_conf->write; next; } elsif ($Ident eq "PCMCIA_CONTROLLER") { - $ID{none}{driver} = '' if is_empty_hash_ref($added[0]) && @was_removed; - harddrake::autoconf::pcmcia(first(values(%ID))->{driver}); + harddrake::autoconf::pcmcia(keys %ID ? first(values(%ID))->{driver} : ''); } elsif ($Ident eq "USB_CONTROLLER") { modules::load_category($modules_conf, 'bus/usb'); $modules_conf->write; -- cgit v1.2.1