summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-01-05 20:55:20 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-01-05 20:55:20 +0000
commitfd6b89e3d9cb165829a25cd196b5340104a4e440 (patch)
treec14cf6f6d8be04fa8cdfe65fc8e68411b399e757 /perl-install/modules.pm
parent49a8229d69ae7b82dff1417857285f5f0a73f43f (diff)
downloaddrakx-fd6b89e3d9cb165829a25cd196b5340104a4e440.tar
drakx-fd6b89e3d9cb165829a25cd196b5340104a4e440.tar.gz
drakx-fd6b89e3d9cb165829a25cd196b5340104a4e440.tar.bz2
drakx-fd6b89e3d9cb165829a25cd196b5340104a4e440.tar.xz
drakx-fd6b89e3d9cb165829a25cd196b5340104a4e440.zip
no_comment
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm10
1 files changed, 5 insertions, 5 deletions
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};