summaryrefslogtreecommitdiffstats
path: root/perl-install/modules/modprobe_conf.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-09-07 07:07:52 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-09-07 07:07:52 +0000
commitce0a1b887671ac54480bb133b4fb5ae23c333de7 (patch)
treec0e53aadce821aa211e5560c2a19a2aa00b66b93 /perl-install/modules/modprobe_conf.pm
parent71707fee88533f6bc9e97028c1b0497a69801d26 (diff)
downloaddrakx-ce0a1b887671ac54480bb133b4fb5ae23c333de7.tar
drakx-ce0a1b887671ac54480bb133b4fb5ae23c333de7.tar.gz
drakx-ce0a1b887671ac54480bb133b4fb5ae23c333de7.tar.bz2
drakx-ce0a1b887671ac54480bb133b4fb5ae23c333de7.tar.xz
drakx-ce0a1b887671ac54480bb133b4fb5ae23c333de7.zip
when installing on kernel 2.4, do generate a valid modprobe.conf anyway
Diffstat (limited to 'perl-install/modules/modprobe_conf.pm')
-rw-r--r--perl-install/modules/modprobe_conf.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/perl-install/modules/modprobe_conf.pm b/perl-install/modules/modprobe_conf.pm
index 2917e27be..b2a57717d 100644
--- a/perl-install/modules/modprobe_conf.pm
+++ b/perl-install/modules/modprobe_conf.pm
@@ -42,14 +42,18 @@ sub set_above {
}
}
+sub create_from_old() {
+ #- use module-init-tools script
+ run_program::rooted($::prefix, "/sbin/generate-modprobe.conf", ">", file());
+}
+
sub read {
my ($type, $o_file) = @_;
my $file = $o_file || do {
my $f = $::prefix . file();
if (!-e $f && -e "$::prefix/etc/modules.conf") {
- #- use module-init-tools script
- run_program::rooted($::prefix, "/sbin/generate-modprobe.conf", ">", file());
+ create_from_old();
}
$f;
};