From 9759e6587e6bae5522c56aeabe69d0330a2a2079 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 22 Apr 2004 09:29:32 +0000 Subject: switch to new harddrake data structure --- perl-install/standalone/service_harddrake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perl-install/standalone/service_harddrake') diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index 842fb60fd..20e43e995 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -38,8 +38,9 @@ my (%config, $wait); my $in; my $splash = -f '/proc/splash'; # For each hw, class, detect device, compare and offer to reconfigure if needed -foreach (@harddrake::data::tree) { - my ($Ident, $item, undef, $configurator, $detector, $do_it) = @$_; +foreach my $hw_class (@harddrake::data::tree) { + my ($Ident, $item, $configurator, $detector, $do_it) = @$hw_class{qw(class string configurator detector checked_on_boot)}; + next unless $do_it ^ $invert_do_it; # No detector ? (should never happen but who know ?) ref($detector) eq 'CODE' or next; -- cgit v1.2.1