summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-22 11:49:57 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-22 11:49:57 +0000
commitcf143f5f5df9b4dbf6c9e191e7d5d96e420b5028 (patch)
tree25152dbb2158b602c32ee7801155fdc648583f89 /lib
parenta008ac30cf08a160d5d3f042c1dd7f3375f3e880 (diff)
downloaddrakx-net-cf143f5f5df9b4dbf6c9e191e7d5d96e420b5028.tar
drakx-net-cf143f5f5df9b4dbf6c9e191e7d5d96e420b5028.tar.gz
drakx-net-cf143f5f5df9b4dbf6c9e191e7d5d96e420b5028.tar.bz2
drakx-net-cf143f5f5df9b4dbf6c9e191e7d5d96e420b5028.tar.xz
drakx-net-cf143f5f5df9b4dbf6c9e191e7d5d96e420b5028.zip
add is_driver_listed helper
Diffstat (limited to 'lib')
-rw-r--r--lib/network/ndiswrapper.pm2
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)) {