From 5a79c6d9d4dc094f86f748f865fcdcbc9eae46ae Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 8 Jul 2002 15:11:48 +0000 Subject: skip configuration on firt run --- perl-install/standalone/service_harddrake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index 3948d0a96..87574e35d 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -67,6 +67,7 @@ foreach (@harddrake::data::tree) { $config{$Ident} = \%ID; my $oldconfig = $previous_config->{$Ident}; + next if is_empty_hash_ref %$previous_config; my $msg; my @was_removed = difference2([ keys %$oldconfig ], [ keys %ID ]); @@ -76,8 +77,8 @@ foreach (@harddrake::data::tree) { my @added = difference2([ keys %ID ], [ keys %$oldconfig ]); $msg .= _("\nSome devices in the %s class were added:\n", $item) if @added; $msg .= "- $_ was added\n" foreach @added; - @added || @was_removed or next; + next unless (-x $configurator); if ($in->ask_okcancel("Hardware changes in $Ident class", -- cgit v1.2.1