From 464162d12076095b4e03762b6f285689b4798f2f Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 28 Apr 2004 12:23:59 +0000 Subject: log removed/added hw --- perl-install/standalone/service_harddrake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index a6ddce473..5c4ac6811 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -65,6 +65,9 @@ foreach my $hw_class (@harddrake::data::tree) { my @added = difference2([ keys %ID ], [ keys %$oldconfig ]); $msg .= N("Some devices were added: %s\n", $item) if @added; $msg .= N("- %s was added\n", harddrake::data::custom_id($ID{$_}, $item)) foreach @added; + log::explanations("removed $Ident: " . harddrake::data::custom_id($oldconfig->{$_}, $item)) foreach @was_removed; + log::explanations("added $Ident: " . harddrake::data::custom_id($oldconfig->{$_}, $item)) foreach @added; + modules::load('ohci1394') if $Ident eq 'FIREWIRE_CONTROLLER' && any { $_->{driver} eq 'ohci1394' } @added; @added || @was_removed or next; $splash and !system('echo verbose > /proc/splash') and $splash = 0; -- cgit v1.2.1