summaryrefslogtreecommitdiffstats
path: root/perl-install/network/netconnect.pm
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2001-07-31 00:25:32 +0000
committerdamien <damien@mandriva.com>2001-07-31 00:25:32 +0000
commit7c1a8317be263c7171da27f07dca2a56480e00e2 (patch)
tree4cdcad3f930877dea41de1ebf88e69e5b6cbd68c /perl-install/network/netconnect.pm
parent10ad1d8908cc760fdeee1f22af69d1f1d8ff9e27 (diff)
downloaddrakx-7c1a8317be263c7171da27f07dca2a56480e00e2.tar
drakx-7c1a8317be263c7171da27f07dca2a56480e00e2.tar.gz
drakx-7c1a8317be263c7171da27f07dca2a56480e00e2.tar.bz2
drakx-7c1a8317be263c7171da27f07dca2a56480e00e2.tar.xz
drakx-7c1a8317be263c7171da27f07dca2a56480e00e2.zip
added intro step for each configuration type.
Diffstat (limited to 'perl-install/network/netconnect.pm')
-rw-r--r--perl-install/network/netconnect.pm18
1 files changed, 12 insertions, 6 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index bb136e64b..4a4e7dbad 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -169,11 +169,17 @@ ifdown eth0
# load_conf ($netcnx, $netc, $intf);
- $conf{modem} and do { require network::modem; network::modem::configure($netcnx, $mouse, $netc) or goto step_2 };
- $conf{isdn} and do { require network::isdn; network::isdn::configure($netcnx, $netc) or goto step_2 };
- $conf{adsl} and do { require network::adsl; network::adsl::configure($netcnx, $netc, $intf, $first_time) or goto step_2 };
- $conf{cable} and do { require network::ethernet; network::ethernet::configure_cable($netcnx, $netc, $intf, $first_time) or goto step_2 };
- $conf{lan} and do { require network::ethernet; network::ethernet::configure_lan($netcnx, $netc, $intf, $first_time) or goto step_2 };
+ my $pre_func = sub {
+ $::Wizard_no_previous=1;
+ #$_[0] is the type of connection of the list: (modem, isdn, adsl, cable, local network);
+ $in->ask_okcancel(_("Network Configuration"), _("\n\n\nWe are now going to configure the %s connection.\n\n\nPress next to begin.",_($_[0])), 1);
+ undef $::Wizard_no_previous;
+ };
+ $conf{modem} and do { &$pre_func("modem"); require network::modem; network::modem::configure($netcnx, $mouse, $netc) or goto step_2 };
+ $conf{isdn} and do { &$pre_func("isdn"); require network::isdn; network::isdn::configure($netcnx, $netc) or goto step_2 };
+ $conf{adsl} and do { &$pre_func("adsl"); require network::adsl; network::adsl::configure($netcnx, $netc, $intf, $first_time) or goto step_2};
+ $conf{cable} and do { &$pre_func("cable"); require network::ethernet; network::ethernet::configure_cable($netcnx, $netc, $intf, $first_time) or goto step_2 };
+ $conf{lan} and do { &$pre_func("local network"); require network::ethernet; network::ethernet::configure_lan($netcnx, $netc, $intf, $first_time) or goto step_2 };
step_2_1:
my $nb = keys %{$netc->{internet_cnx}};
@@ -190,7 +196,7 @@ ifdown eth0
}
$netc->{internet_cnx_choice} and write_cnx_script($netc);
- $::isStandalone and ask_connect_now() or goto step_2_1;
+ $::isStandalone and ask_connect_now();
step_3: