summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-22 09:48:40 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-22 09:48:40 +0000
commitc14094babb946a4490e8213e8fa8e2cc156be8f3 (patch)
tree72814ea9432df48edbc44beae53d5fc03541b943 /lib
parent53c8fff1beb3659d8a7980b9de5f198e0133a798 (diff)
downloaddrakx-net-c14094babb946a4490e8213e8fa8e2cc156be8f3.tar
drakx-net-c14094babb946a4490e8213e8fa8e2cc156be8f3.tar.gz
drakx-net-c14094babb946a4490e8213e8fa8e2cc156be8f3.tar.bz2
drakx-net-c14094babb946a4490e8213e8fa8e2cc156be8f3.tar.xz
drakx-net-c14094babb946a4490e8213e8fa8e2cc156be8f3.zip
reload modules.dep so that newly added dkms modules are recognized (#33044)
Diffstat (limited to 'lib')
-rw-r--r--lib/network/thirdparty.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/network/thirdparty.pm b/lib/network/thirdparty.pm
index d30891a..68d3caf 100644
--- a/lib/network/thirdparty.pm
+++ b/lib/network/thirdparty.pm
@@ -8,6 +8,8 @@ use services;
use fs::get;
use fs;
use log;
+use modules;
+use list_modules;
#- using bsd_glob() since glob("/DONT_EXIST") return "/DONT_EXIST" instead of () (and we don't want this)
use File::Glob ':glob';
@@ -151,8 +153,9 @@ sub is_file_installed {
sub is_module_installed {
my ($settings, $driver) = @_;
- require modules;
my $module = ref $settings->{kernel_module} eq 'HASH' && $settings->{kernel_module}{test_file} || $driver;
+ #- reload modules.dep so that newly added dkms modules are recognized
+ list_modules::load_default_moddeps();
modules::module_is_available($module);
}