diff options
Diffstat (limited to 'perl-install/modules')
-rw-r--r-- | perl-install/modules/any_conf.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/modules/any_conf.pm b/perl-install/modules/any_conf.pm index e3bbb318c..42050cd04 100644 --- a/perl-install/modules/any_conf.pm +++ b/perl-install/modules/any_conf.pm @@ -105,9 +105,11 @@ sub remove_module { my ($conf, $module) = @_; return if !$module; $module = $conf->mapping($module); - substInFile { - undef $_ if /^$module/; - } $_ foreach "$::prefix/etc/modules", "$::prefix/etc/modprobe.preload"; + foreach my $file ("$::prefix/etc/modules", "$::prefix/etc/modprobe.preload") { + substInFile { + undef $_ if /^$module/; + } $file; + } $conf->remove_alias($module); log::explanations("removing module $module"); |