summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-09-03 05:06:52 +0000
committerOlivier Blin <oblin@mandriva.org>2004-09-03 05:06:52 +0000
commit3ee934eba2b015f7aaddf5856651e58baca1b33b (patch)
treeff146dc924491d6659b857c21c2ee870b74587e9
parenta392268adb3cf7d61f066db20ccfa3a98cec7a09 (diff)
downloaddrakx-3ee934eba2b015f7aaddf5856651e58baca1b33b.tar
drakx-3ee934eba2b015f7aaddf5856651e58baca1b33b.tar.gz
drakx-3ee934eba2b015f7aaddf5856651e58baca1b33b.tar.bz2
drakx-3ee934eba2b015f7aaddf5856651e58baca1b33b.tar.xz
drakx-3ee934eba2b015f7aaddf5856651e58baca1b33b.zip
(get_interface_type) enhance detection for adsl devices
-rw-r--r--perl-install/network/tools.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm
index 338cbf4c8..8fd8fbd2c 100644
--- a/perl-install/network/tools.pm
+++ b/perl-install/network/tools.pm
@@ -297,7 +297,8 @@ sub get_interface_type {
my ($interface) = @_;
$interface->{DEVICE} =~ /^(eth|ath|wlan)/ && "ethernet" ||
$interface->{DEVICE} =~ /^ippp/ && "isdn" ||
- $interface->{DEVICE} =~ /^ppp/ && (member($interface->{TYPE}, "xDSL", "ADSL") ? "adsl" : "modem") ||
+ member($interface->{TYPE}, "xDSL", "ADSL") && "adsl" ||
+ $interface->{DEVICE} =~ /^ppp/ && "modem" ||
"unknown";
}