From ae498c139796995d4bf8fce81844757b07bca62f Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 14 Feb 2005 11:08:47 +0000 Subject: better style --- perl-install/standalone/service_harddrake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index e72c8cb94..6a77d2898 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -144,7 +144,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) && @was_removed; + $ID{none}->{driver} = '' if is_empty_hash_ref($added[0]) && @was_removed; harddrake::autoconf::pcmcia(first(values(%ID))->{driver}); } elsif ($Ident eq "USB_CONTROLLER") { modules::load_category($modules_conf, 'bus/usb'); -- cgit v1.2.1