summaryrefslogtreecommitdiffstats
path: root/perl-install/network/ndiswrapper.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-09-28 17:37:55 +0000
committerOlivier Blin <oblin@mandriva.org>2005-09-28 17:37:55 +0000
commitddbfc80cc6ab1d320cd69793778cb6f8bbe55a4f (patch)
treecbfb6399e253cd5639aee48531a2f0897035247a /perl-install/network/ndiswrapper.pm
parentd6386d03ccbc57f2c99f4a8aff2f26346f4ed47a (diff)
downloaddrakx-ddbfc80cc6ab1d320cd69793778cb6f8bbe55a4f.tar
drakx-ddbfc80cc6ab1d320cd69793778cb6f8bbe55a4f.tar.gz
drakx-ddbfc80cc6ab1d320cd69793778cb6f8bbe55a4f.tar.bz2
drakx-ddbfc80cc6ab1d320cd69793778cb6f8bbe55a4f.tar.xz
drakx-ddbfc80cc6ab1d320cd69793778cb6f8bbe55a4f.zip
simplify
Diffstat (limited to 'perl-install/network/ndiswrapper.pm')
-rw-r--r--perl-install/network/ndiswrapper.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/ndiswrapper.pm b/perl-install/network/ndiswrapper.pm
index c7a592c75..83f0c3704 100644
--- a/perl-install/network/ndiswrapper.pm
+++ b/perl-install/network/ndiswrapper.pm
@@ -58,7 +58,7 @@ sub find_matching_devices {
-l $dev_path or next;
my $map = detect_devices::get_sysfs_device_id_map($dev_path);
if (every { hex(chomp_(cat_("$dev_path/" . $map->{$_}))) eq $device->{$_} } keys %$map) {
- my $driver = readlink("$net_path/$interface/device/driver");
+ my $driver = readlink("$dev_path/driver");
$driver =~ s!.*/!!;
push @devices, [ $interface, $driver ] if $driver;
}