diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-03-31 22:18:10 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-03-31 22:18:10 +0000 |
commit | 3654b890cdcf0f5e6b35fb39e8126a9e7d2eb389 (patch) | |
tree | 0e1e83d3e7fb58b1843128dbd526912c3fef15e0 /perl-install/detect_devices.pm | |
parent | d33ed7a6d4c67b11847470ea8578c7a28b3f289a (diff) | |
download | drakx-3654b890cdcf0f5e6b35fb39e8126a9e7d2eb389.tar drakx-3654b890cdcf0f5e6b35fb39e8126a9e7d2eb389.tar.gz drakx-3654b890cdcf0f5e6b35fb39e8126a9e7d2eb389.tar.bz2 drakx-3654b890cdcf0f5e6b35fb39e8126a9e7d2eb389.tar.xz drakx-3654b890cdcf0f5e6b35fb39e8126a9e7d2eb389.zip |
enable ethernet interfaces during detection (fix Ralink wireless detection)
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index d88cfd578..ce65b2929 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -564,11 +564,15 @@ sub is_lan_interface { } sub getNet() { - grep { is_lan_interface($_) } + my @net_devices = grep { is_lan_interface($_) } uniq( (map { if_(/^\s*([A-Za-z0-9:\.]*):/, $1) } cat_("/proc/net/dev")), c::get_netdevices(), ); + #- enable all interfaces + #- needed for some drivers (Ralink) to be able to detect it is wireless aware + c::enable_net_device($_) foreach @net_devices; + @net_devices; } #sub getISDN() { |