From 9ff2effc16b64bd7a6073e1d4cc3776bb009de61 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 12 Feb 2004 15:05:16 +0000 Subject: preselect right protocol for ethernet though connections --- perl-install/network/netconnect.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'perl-install/network') diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index 8c7ae8e1f..fb35a37c1 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -669,6 +669,13 @@ and copy the mgmt.o in /usr/share/speedtouch", 'http://prdownloads.sourceforge.n adsl_protocol => { + pre => sub { + # preselect right protocol for ethernet though connections: + if (!exists $adsl_devices{$ntf_name}) { + $ethntf = $intf->{$ntf_name} ||= { DEVICE => $ntf_name }; + $adsl_type = $ethntf->{BOOTPROTO} || "dhcp"; + } + }, name => N("Connect to the Internet") . "\n\n" . N("The most common way to connect with adsl is pppoe. Some connections use pptp, a few use dhcp. @@ -684,7 +691,6 @@ If you don't know, choose 'use pppoe'"), # process static/dhcp ethernet devices: if (!exists $adsl_devices{$ntf_name} && member($adsl_type, qw(manual dhcp))) { $auto_ip = $adsl_type eq 'dhcp'; - $ethntf = $intf->{$ntf_name} ||= { DEVICE => $ntf_name }; $find_lan_module->(); return 'lan_intf'; } -- cgit v1.2.1