summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-09-03 05:47:31 +0000
committerOlivier Blin <oblin@mandriva.org>2004-09-03 05:47:31 +0000
commit976496eca76abf6bb6e95c86ac65cacd76608a69 (patch)
treec8dc036cdf8fcef158ef0c0e68e968f84e35f3d1 /perl-install/network
parentb2b342fe5a217208ccda9c922c02183fbcfe1d58 (diff)
downloaddrakx-976496eca76abf6bb6e95c86ac65cacd76608a69.tar
drakx-976496eca76abf6bb6e95c86ac65cacd76608a69.tar.gz
drakx-976496eca76abf6bb6e95c86ac65cacd76608a69.tar.bz2
drakx-976496eca76abf6bb6e95c86ac65cacd76608a69.tar.xz
drakx-976496eca76abf6bb6e95c86ac65cacd76608a69.zip
support DHCP and manual for sagem devices
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/netconnect.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 522beecd7..3ea33ebb0 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -767,8 +767,13 @@ If you don't know, choose 'use PPPoE'"),
# blacklist bogus driver, enable ifplugd support else:
$find_lan_module->();
$ethntf->{MII_NOT_SUPPORTED} ||= $is_hotplug_blacklisted->();
+ if ($ntf_name eq "sagem") {
+ #- FIXME: duplicated with %modems from adsl.pm
+ $ethntf = $intf->{$ntf_name} = { DEVICE => "`/usr/sbin/eaglectrl -i`", MII_NOT_SUPPORTED => "yes" };
+ }
# process static/dhcp ethernet devices:
- if (!exists $adsl_devices{$ntf_name} && member($adsl_type, qw(manual dhcp))) {
+ if (exists($intf->{$ntf_name}) && member($adsl_type, qw(manual dhcp))) {
+ $ethntf->{TYPE} = "ADSL";
$auto_ip = $adsl_type eq 'dhcp';
return 'lan_intf';
}