diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-05-26 09:43:58 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-05-26 09:43:58 +0000 |
commit | cdce9a028098a29314e336df9dedb7965ce9154e (patch) | |
tree | e63b5b45dc8bcb7339f4142c3f91e244da2fd8db /perl-install/detect_devices.pm | |
parent | fcf597bc93e1aa48d0a3997d3501f32939acbb6e (diff) | |
download | drakx-cdce9a028098a29314e336df9dedb7965ce9154e.tar drakx-cdce9a028098a29314e336df9dedb7965ce9154e.tar.gz drakx-cdce9a028098a29314e336df9dedb7965ce9154e.tar.bz2 drakx-cdce9a028098a29314e336df9dedb7965ce9154e.tar.xz drakx-cdce9a028098a29314e336df9dedb7965ce9154e.zip |
(getNet) reuse c::get_netdevices()
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index d70391d80..00c594adf 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -493,14 +493,7 @@ sub getECI() { grep { member(sprintf("%04x%04x%04x%04x", $_->{vendor}, $_->{id}, $_->{subvendor}, $_->{subid}), @ids) } usb_probe(); } -sub getNet() { - grep { !($::isStandalone && /plip/) && c::hasNetDevice($_) } - grep { /^(ath|br|eth|fddi|plip|tap|tr|usb|wifi|wlan)/ } - map_index { - # skip headers - if_(1 < $::i && /^\s*([a-z]*[0-9]*):/, $1) - } cat_("/proc/net/dev"); -} +sub getNet() { c::get_netdevices() } #sub getISDN() { # mapgrep(sub {member (($_[0] =~ /\s*(\w*):/), @netdevices), $1 }, split(/\n/, cat_("/proc/net/dev"))); |