summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/service_harddrake3
1 files changed, 1 insertions, 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;