summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2001-01-09 14:32:25 +0000
committerdamien <damien@mandriva.com>2001-01-09 14:32:25 +0000
commit59a9990e247dab8e66a03907a14e39d7370b6348 (patch)
tree32862a393c3128f48eaa1ca0bfc85e472c23b05f
parent6ca709697a6bc12af4def0ecdd7872625e4b4dc8 (diff)
downloaddrakx-59a9990e247dab8e66a03907a14e39d7370b6348.tar
drakx-59a9990e247dab8e66a03907a14e39d7370b6348.tar.gz
drakx-59a9990e247dab8e66a03907a14e39d7370b6348.tar.bz2
drakx-59a9990e247dab8e66a03907a14e39d7370b6348.tar.xz
drakx-59a9990e247dab8e66a03907a14e39d7370b6348.zip
synchrnisation
-rw-r--r--perl-install/modules.pm14
1 files changed, 10 insertions, 4 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index 0714ba3e3..4f71d6625 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -432,7 +432,7 @@ sub load {
run_program::run("modprobe", $name, @options);
} else {
$conf{$name}{loaded} and return;
-
+
eval { load($_, 'prereq') } foreach @{$deps{$name}};
load_raw([ $name, @options ]);
}
@@ -548,7 +548,7 @@ sub mergein_conf {
my $modconfref = read_conf ($file, \$scsi);
while (my ($key, $value) = each %$modconfref) {
$conf{$key}{alias} = $value->{alias} unless exists $conf{$key}{alias};
- }
+ }
}
sub write_conf {
@@ -559,10 +559,16 @@ sub write_conf {
#- remove the post-install supermount stuff. We now do it in /etc/modules
#- Substitute new aliases in modules.conf (if config has changed)
+
+ substInFile { $_ = '' if /^post-install supermount/ } $file;
+
substInFile {
- $_ = '' if /^post-install supermount/;
my ($type,$alias,$module) = split /\s+/, $_;
- $_ = "$type $alias $conf{$alias}{alias} \n" if ($type ne "loaded" && $conf{$alias}{alias} && $conf{$alias}{alias} !~ /$module/);
+ if ($type ne "loaded" &&
+ $conf{$alias}{alias} &&
+ $conf{$alias}{alias} !~ /$module/) {
+ $_ = "$type $alias $conf{$alias}{alias} \n";
+ }
} $file;
my $written = read_conf($file);