From 3a5403296f8530a76dd8d3c52ef17740e521b393 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 20 Jan 2005 13:06:27 +0000 Subject: (append_to_modules_loaded_at_startup_for_all_kernels) introduce it (wrapper around append_to_modules_loaded_at_startup()) --- perl-install/modules.pm | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.1