From 4f1200a2d83c185d6f5da855f12dcc6803929573 Mon Sep 17 00:00:00 2001 From: Nicolas Planel Date: Mon, 15 Dec 2003 13:46:45 +0000 Subject: generate modprobe.conf when writing modules.conf --- perl-install/modules.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perl-install') 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 { -- cgit v1.2.1