From faa57b8b6a468f63904c16e3689dfb7dfd6e9306 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 22 Feb 2008 11:45:27 +0000 Subject: unload drivers for all conflicting interfaces --- lib/network/ndiswrapper.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/network/ndiswrapper.pm') diff --git a/lib/network/ndiswrapper.pm b/lib/network/ndiswrapper.pm index 6251a35..6e21bb2 100644 --- a/lib/network/ndiswrapper.pm +++ b/lib/network/ndiswrapper.pm @@ -83,7 +83,8 @@ sub setup_device { $in->ask_yesorno(N("Warning"), N("The selected device has already been configured with the %s driver. Do you really want to use a ndiswrapper driver?", $conflicts[0]->{drivers}[0])) or return; #- unload the old module and try immediately to load ndiswrapper - eval { modules::unload($_) } foreach @{$conflicts[0]->{drivers}}; + my @drivers = map { @{$_->{drivers}} } @conflicts; + eval { modules::unload($_) } foreach @drivers; } #- unload ndiswrapper first so that the newly installed .inf files will be read -- cgit v1.2.1