summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index c431268c6..866ca9e91 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -329,7 +329,8 @@ sub load_raw_install {
my $stdout;
my $rc = run_program::run('/sbin/insmod', '2>', \$stdout, $m, split(' ', $options->{$_}));
log::l(chomp_($stdout)) if $stdout;
- if ($rc) {
+ # if whether we succeeded or module is already loaded:
+ if ($rc || $stdout =~ /: -1 File exists/) {
unlink $m;
'';
}