From e08fc24a9c0a5df70e48e28c47c048bdc589cc86 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 1 Dec 2003 10:03:59 +0000 Subject: (configure) prevent silently skipping configuration steps by explicitely dying --- perl-install/network/adsl.pm | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'perl-install/network/adsl.pm') diff --git a/perl-install/network/adsl.pm b/perl-install/network/adsl.pm index 41d362ced..191e81ea9 100644 --- a/perl-install/network/adsl.pm +++ b/perl-install/network/adsl.pm @@ -36,25 +36,21 @@ If you don't know, choose 'use pppoe'"), $in->do_pkgs->install("rp-$type") if !$::testing; $netcnx->{type} = "adsl_$type"; adsl_conf($netcnx->{"adsl_$type"}, $netc, $intf, $type) or goto conf_adsl_step1; - } - if ($type eq 'dhcp') { + } elsif ($type eq 'dhcp') { $in->do_pkgs->install(qw(dhcpcd)) if !$::testing; go_ethernet($netc, $intf, 'dhcp', '', '', $first_time) or goto conf_adsl_step1; - } - if ($type eq 'pptp') { + } elsif ($type eq 'pptp') { $in->do_pkgs->install(qw(pptp-adsl)) if !$::testing; $netcnx->{type} = "adsl_$type"; $netcnx->{"adsl_$type"} = {}; adsl_conf($netcnx->{"adsl_$type"}, $netc, $intf, $type) or goto conf_adsl_step1; - } - if ($type =~ /sagem/) { + } elsif ($type =~ /sagem/) { $type = 'sagem' . ($type =~ /dhcp/ ? "_dhcp" : ""); $in->do_pkgs->install(qw(adiusbadsl), if_($type =~ /dhcp/, qw(dhcpcd))) if !$::testing; $netcnx->{type} = "adsl_$type"; $netcnx->{"adsl_$type"} = {}; adsl_conf($netcnx->{"adsl_$type"}, $netc, $intf, $type) or goto conf_adsl_step1; - } - if ($type =~ /speedtouch/) { + } elsif ($type =~ /speedtouch/) { $type = 'speedtouch'; $in->do_pkgs->install(qw(speedtouch)) if !$::testing; $netcnx->{type} = "adsl_$type"; @@ -62,7 +58,7 @@ If you don't know, choose 'use pppoe'"), $netcnx->{"adsl_$type"}{vpivci} = ''; adsl_conf($netcnx->{"adsl_$type"}, $netc, $intf, $type) or goto conf_adsl_step1; } - # if ($type =~ /ECI/) { + # elsif ($type =~ /ECI/) { # $type = 'eci'; # $in->do_pkgs->install(qw(eciadsl)) if !$::testing; # $netcnx->{type} = "adsl_$type"; @@ -70,6 +66,9 @@ If you don't know, choose 'use pppoe'"), # $netcnx->{"adsl_$type"}{vpivci} = ''; # adsl_conf($netcnx->{"adsl_$type"}, $netc, $intf, $type) or goto conf_adsl_step1; # } + else { + die "unknown adsl connection type !!!"; + } $type =~ /speedtouch|eci/ or $netconnect::need_restart_network = 1; 1; } -- cgit v1.2.1