summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-02-26 09:21:00 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-02-26 09:21:00 +0000
commit5d21873578a1e74480cb6d3000eba33305af7666 (patch)
tree243b7d7611f0c46139a315bb8a30b3c78e5b8921 /perl-install/network
parent2d4f2558a272e1bc39d990b8afe152cf9bcf1130 (diff)
downloaddrakx-5d21873578a1e74480cb6d3000eba33305af7666.tar
drakx-5d21873578a1e74480cb6d3000eba33305af7666.tar.gz
drakx-5d21873578a1e74480cb6d3000eba33305af7666.tar.bz2
drakx-5d21873578a1e74480cb6d3000eba33305af7666.tar.xz
drakx-5d21873578a1e74480cb6d3000eba33305af7666.zip
typo fix: only write ether config for lan...
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/netconnect.pm22
1 files changed, 8 insertions, 14 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 1614c88b6..510e76f4d 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -125,7 +125,7 @@ sub real_main {
return "multiple_internet_cnx";
} else {
$netc->{internet_cnx_choice} = (keys %{$netc->{internet_cnx}})[0] if $nb == 1;
- return $::isInstall ? "network_on_boot" : "apply_settings";
+ return "network_on_boot";
}
};
@@ -954,7 +954,7 @@ I cannot set up this connection type.")), return;
static_hostname =>
{
pre => sub {
- network::ethernet::write_ether_conf($in, $netcnx, $netc, $intf) if $netcnx->{type} = 'lan';
+ network::ethernet::write_ether_conf($in, $netcnx, $netc, $intf) if $netcnx->{type} eq 'lan';
if ($ethntf->{IPADDR}) {
$netc->{dnsServer} ||= dns($ethntf->{IPADDR});
$gateway_ex = gateway($ethntf->{IPADDR});
@@ -1019,19 +1019,13 @@ N("Last but not least you can also type in your DNS server IP addresses."),
[ { label => N("Internet connection"), val => \$netc->{internet_cnx_choice},
list => [ keys %{$netc->{internet_cnx}} ] } ];
},
- post => sub { $::isInstall ? "network_on_boot" : "apply_settings" },
- },
-
- apply_settings =>
- {
- name => N("Configuration is complete, do you want to apply settings ?"),
- type => "yesorno",
post => sub {
- if (keys %$config) {
- require Data::Dumper;
- output('/etc/sysconfig/drakconnect', Data::Dumper->Dump([$config], ['$p']));
- }
- "network_on_boot" },
+ if (keys %$config) {
+ require Data::Dumper;
+ output('/etc/sysconfig/drakconnect', Data::Dumper->Dump([$config], ['$p']));
+ }
+ return "network_on_boot";
+ },
},
network_on_boot =>