From fd6b89e3d9cb165829a25cd196b5340104a4e440 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 5 Jan 2000 20:55:20 +0000 Subject: no_comment --- perl-install/modules.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'perl-install/modules.pm') diff --git a/perl-install/modules.pm b/perl-install/modules.pm index 5102e589c..4aa8a0693 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -421,14 +421,14 @@ sub write_conf { while (my ($k, $v) = each %net) { add_alias($k, $v) } add_alias('scsi_hostadapter', 'ide-scsi') if detect_devices::getIDEBurners(); - $conf{supermount}{"post-install"} = - join " ; ", - map { "modprobe $_" } - grep { $conf{$_}{alias} && $conf{$_}{alias} =~ /scsi_hostadapter/ } keys %conf; + + if (my @scsis = grep { $conf{$_}{alias} && /scsi_hostadapter/ } keys %conf) { + log::l("has scsis ", join " ; ", map { "modprobe $_" } @scsis); + $conf{supermount}{"post-install"} = join " ; ", map { "modprobe $_" } @scsis; + } local *F; open F, ">> $file" or die("cannot write module config file $file: $!\n"); - while (my ($mod, $h) = each %conf) { while (my ($type, $v2) = each %$h) { print F "$type $mod $v2\n" if $v2 && $type ne "loaded" && !$written->{$mod}{$type}; -- cgit v1.2.1