From e3a64aac70be596ba94de43ec53613824cd22e59 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 22 Feb 2008 11:50:17 +0000 Subject: always mark the original driver as conflicting with ndiswrapper if it is loaded --- lib/network/ndiswrapper.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/network/ndiswrapper.pm b/lib/network/ndiswrapper.pm index efd2dc5..c2fa73f 100644 --- a/lib/network/ndiswrapper.pm +++ b/lib/network/ndiswrapper.pm @@ -63,6 +63,10 @@ sub find_matching_devices { } } + #- add original driver + push @devices, { interface => undef, drivers => [ $device->{driver} ] } + if !$is_driver_listed->($device->{driver}) && any { $_ eq $device->{driver} } modules::loaded_modules(); + @devices; } -- cgit v1.2.1