summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Planel <nplanel@mandriva.com>2003-12-15 13:46:45 +0000
committerNicolas Planel <nplanel@mandriva.com>2003-12-15 13:46:45 +0000
commit4f1200a2d83c185d6f5da855f12dcc6803929573 (patch)
treed1f6a91b6607d20669046352f2c589b07eec2381
parentb418b79b8b7e40cf164cb2a21b6c3fa25a2056a6 (diff)
downloaddrakx-4f1200a2d83c185d6f5da855f12dcc6803929573.tar
drakx-4f1200a2d83c185d6f5da855f12dcc6803929573.tar.gz
drakx-4f1200a2d83c185d6f5da855f12dcc6803929573.tar.bz2
drakx-4f1200a2d83c185d6f5da855f12dcc6803929573.tar.xz
drakx-4f1200a2d83c185d6f5da855f12dcc6803929573.zip
generate modprobe.conf when writing modules.conf
-rw-r--r--perl-install/modules.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index 37efa5aca..e535c1c75 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -289,6 +289,9 @@ sub write_conf {
push @l, 'scsi_hostadapter' if !is_empty_array_ref($conf{scsi_hostadapter}{probeall});
push @l, 'bttv' if any { $_->{driver} eq 'bttv' } detect_devices::probeall();
append_to_etc_modules($prefix, @l);
+
+ #- use module-init-tools script for the moment
+ run_program::rooted($prefix, "/sbin/generate-modprobe.conf", ">", "/etc/modprobe.conf") if (-e "$prefix/etc/modprobe.conf");
}
sub append_to_etc_modules {