diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-01-20 13:06:27 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-01-20 13:06:27 +0000 |
commit | 3a5403296f8530a76dd8d3c52ef17740e521b393 (patch) | |
tree | e776932cf52e4035ad4b36a759f7121ce241308b /perl-install | |
parent | ecbe67811d39220b60bc5de558a3129e5746a2c2 (diff) | |
download | drakx-backup-do-not-use-3a5403296f8530a76dd8d3c52ef17740e521b393.tar drakx-backup-do-not-use-3a5403296f8530a76dd8d3c52ef17740e521b393.tar.gz drakx-backup-do-not-use-3a5403296f8530a76dd8d3c52ef17740e521b393.tar.bz2 drakx-backup-do-not-use-3a5403296f8530a76dd8d3c52ef17740e521b393.tar.xz drakx-backup-do-not-use-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.pm | 4 |
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; |