summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-02-23 15:59:47 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-02-23 15:59:47 +0000
commit4033257c7f84909cc9738809e40f6d112f76590e (patch)
treebd701de3c25d32bab2cbe916353c38fb0e50e100 /perl-install
parent0cb2e4c1870c08cc118d1269cffc7082a14c81fb (diff)
downloaddrakx-4033257c7f84909cc9738809e40f6d112f76590e.tar
drakx-4033257c7f84909cc9738809e40f6d112f76590e.tar.gz
drakx-4033257c7f84909cc9738809e40f6d112f76590e.tar.bz2
drakx-4033257c7f84909cc9738809e40f6d112f76590e.tar.xz
drakx-4033257c7f84909cc9738809e40f6d112f76590e.zip
- always write up/down scripts
- only write initscript when starting at boot was choosen (instead of writing it in restart path...)
Diffstat (limited to 'perl-install')
-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->();
},
},