summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/network/netconnect.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 8033b53a7..9e0181438 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -1046,9 +1046,10 @@ N("Last but not least you can also type in your DNS server IP addresses."),
post => sub {
my ($res) = @_;
$netc->{at_boot} = $res;
+ write_cnx_script($netc);
if ($netc->{internet_cnx_choice}) {
- write_cnx_script($netc);
$netcnx->{type} = $netc->{internet_cnx}{$netc->{internet_cnx_choice}}{type};
+ write_initscript();
} else {
unlink "$::prefix/etc/sysconfig/network-scripts/net_cnx_up";
unlink "$::prefix/etc/sysconfig/network-scripts/net_cnx_down";
@@ -1073,7 +1074,6 @@ N("Last but not least you can also type in your DNS server IP addresses."),
$in->ask_okcancel(N("Network Configuration"),
N("A problem occured while restarting the network: \n\n%s", `/etc/rc.d/init.d/network restart`), 0);
}
- write_initscript();
return $offer_to_connect->();
},
},