From 5bad5af7ae55f0ab7d1d58999efd54f023b286d4 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 25 Feb 2005 10:38:35 +0000 Subject: allow to select "unlisted" provider in adsl provider list --- perl-install/network/netconnect.pm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'perl-install/network') diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index a7858939b..7893b8df1 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -751,15 +751,18 @@ Take a look at http://www.linmodems.org"), $adsl_old_provider = $adsl_provider; }, name => N("Please choose your ADSL provider"), - data => sub { - [ { label => N("Provider:"), type => "list", val => \$adsl_provider, separator => '|', list => [ keys %adsl_data ] } ]; + data => sub { + [ { label => N("Provider:"), type => "list", val => \$adsl_provider, separator => '|', + list => [ N("Unlisted - edit manually"), keys %adsl_data ] } ]; }, post => sub { - $adsl_data = $adsl_data{$adsl_provider}; $adsl_type = 'pppoa' if member($ntf_name, qw(bewan speedtouch)); - if ($adsl_provider ne $adsl_old_provider) { - $netc->{$_} = $adsl_data->{$_} foreach qw(DOMAINNAME2 Encapsulation vpi vci); - $adsl_type = $adsl_data->{method}; + if ($adsl_provider ne N("Unlisted - edit manually")) { + $adsl_data = $adsl_data{$adsl_provider}; + if ($adsl_provider ne $adsl_old_provider) { + $netc->{$_} = $adsl_data->{$_} foreach qw(DOMAINNAME2 Encapsulation vpi vci); + $adsl_type = $adsl_data->{method}; + } } return 'adsl_protocol'; }, -- cgit v1.2.1