diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/ndiswrapper.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/network/ndiswrapper.pm b/lib/network/ndiswrapper.pm index 3bf7bd3..efd2dc5 100644 --- a/lib/network/ndiswrapper.pm +++ b/lib/network/ndiswrapper.pm @@ -53,6 +53,8 @@ sub find_matching_devices { my $net_path = '/sys/class/net'; my @devices; + my $is_driver_listed = sub { my ($driver) = @_; any { member($driver, @{$_->{drivers}}) } @devices }; + require network::connection::ethernet; foreach my $interface (all($net_path)) { if (network::connection::ethernet::device_matches_interface($device, $interface)) { |