summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-01-20 13:06:27 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-01-20 13:06:27 +0000
commit3a5403296f8530a76dd8d3c52ef17740e521b393 (patch)
treee776932cf52e4035ad4b36a759f7121ce241308b /perl-install
parentecbe67811d39220b60bc5de558a3129e5746a2c2 (diff)
downloaddrakx-3a5403296f8530a76dd8d3c52ef17740e521b393.tar
drakx-3a5403296f8530a76dd8d3c52ef17740e521b393.tar.gz
drakx-3a5403296f8530a76dd8d3c52ef17740e521b393.tar.bz2
drakx-3a5403296f8530a76dd8d3c52ef17740e521b393.tar.xz
drakx-3a5403296f8530a76dd8d3c52ef17740e521b393.zip
(append_to_modules_loaded_at_startup_for_all_kernels) introduce it
(wrapper around append_to_modules_loaded_at_startup())
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/modules.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index bdfc36371..c21405013 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -189,6 +189,10 @@ sub write_preload_conf {
append_to_modules_loaded_at_startup("$::prefix/etc/modprobe.preload", @l_26);
}
+sub append_to_modules_loaded_at_startup_for_all_kernels {
+ append_to_modules_loaded_at_startup($_, @_) foreach "$::prefix/etc/modules", "$::prefix/etc/modprobe.preload";
+}
+
sub append_to_modules_loaded_at_startup {
my ($file, @l) = @_;
my $l = join '|', map { '^\s*' . $_ . '\s*$' } @l;