From d50a7e465bf3667b12d24afe8528c236edd0f03c Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 12 May 2005 06:59:28 +0000 Subject: fix PCMCIA controller reconfiguration (#15742) --- perl-install/standalone/service_harddrake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'perl-install/standalone/service_harddrake') 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