summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-09-07 05:19:17 +0000
committerOlivier Blin <oblin@mandriva.org>2004-09-07 05:19:17 +0000
commit8596f228158a19f44aa27c52cf088efc59db3e2b (patch)
tree963fc68fef60d1b7e84bb14ac39b71f3162c4e2e /perl-install/network
parent5f19398a9d164e2a6eda830a5ebb6a82d95854dc (diff)
downloaddrakx-8596f228158a19f44aa27c52cf088efc59db3e2b.tar
drakx-8596f228158a19f44aa27c52cf088efc59db3e2b.tar.gz
drakx-8596f228158a19f44aa27c52cf088efc59db3e2b.tar.bz2
drakx-8596f228158a19f44aa27c52cf088efc59db3e2b.tar.xz
drakx-8596f228158a19f44aa27c52cf088efc59db3e2b.zip
(get_interface_type) ethernet devices can be used as adsl devices
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/tools.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm
index fd41f3afe..b136dc208 100644
--- a/perl-install/network/tools.pm
+++ b/perl-install/network/tools.pm
@@ -278,9 +278,9 @@ sub get_internet_connection {
sub get_interface_type {
my ($interface) = @_;
+ member($interface->{TYPE}, "xDSL", "ADSL") && "adsl" ||
$interface->{DEVICE} =~ /^(eth|ath|wlan)/ && "ethernet" ||
$interface->{DEVICE} =~ /^ippp/ && "isdn" ||
- member($interface->{TYPE}, "xDSL", "ADSL") && "adsl" ||
$interface->{DEVICE} =~ /^ppp/ && "modem" ||
"unknown";
}