summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
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;