summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-10-05 06:49:14 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-10-05 06:49:14 +0000
commit0b05ca05ddc79e60bcbd1ddccff9941307166466 (patch)
tree1e5364e434643be2bfc8b01d637dbc21310cdb85 /perl-install/install_steps_interactive.pm
parentd8d88eba0f2a84ee7ee2c185790d4a28f0a892e9 (diff)
downloaddrakx-0b05ca05ddc79e60bcbd1ddccff9941307166466.tar
drakx-0b05ca05ddc79e60bcbd1ddccff9941307166466.tar.gz
drakx-0b05ca05ddc79e60bcbd1ddccff9941307166466.tar.bz2
drakx-0b05ca05ddc79e60bcbd1ddccff9941307166466.tar.xz
drakx-0b05ca05ddc79e60bcbd1ddccff9941307166466.zip
for meta_class firewall, call the general netconnect function
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm12
1 files changed, 9 insertions, 3 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index 09eda9dea..f50ff2632 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -741,9 +741,15 @@ sub updateModulesFromFloppy {
#------------------------------------------------------------------------------
sub configureNetwork {
my ($o) = @_;
- require network::network;
- network::network::easy_dhcp($o->{netc}, $o->{intf}) and $o->{netcnx}{type} = 'lan';
- $o->SUPER::configureNetwork;
+
+ if ($o->{meta_class} eq 'firewall') {
+ require network::netconnect;
+ network::netconnect::main($o->{prefix}, $o->{netcnx} ||= {}, $o, $o->{netc}, $o->{mouse}, $o->{intf}, 0, 1);
+ } else {
+ require network::network;
+ network::network::easy_dhcp($o->{netc}, $o->{intf}) and $o->{netcnx}{type} = 'lan';
+ $o->SUPER::configureNetwork;
+ }
}
#------------------------------------------------------------------------------