summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2002-01-21 16:29:23 +0000
committerdamien <damien@mandriva.com>2002-01-21 16:29:23 +0000
commit252055ec0535dd85feda5aae4d18c5777ca991bd (patch)
tree43f2ab0e6010e97c08c46da17de75ad5db56f30b /perl-install
parent9f4426267d460d9f7bcf91f60892f463144fe8f5 (diff)
downloaddrakx-252055ec0535dd85feda5aae4d18c5777ca991bd.tar
drakx-252055ec0535dd85feda5aae4d18c5777ca991bd.tar.gz
drakx-252055ec0535dd85feda5aae4d18c5777ca991bd.tar.bz2
drakx-252055ec0535dd85feda5aae4d18c5777ca991bd.tar.xz
drakx-252055ec0535dd85feda5aae4d18c5777ca991bd.zip
fixed network conf in auto install
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install_steps.pm17
1 files changed, 16 insertions, 1 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index 03ffa01b3..b395a262f 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -584,7 +584,22 @@ sub configureNetwork {
my ($o) = @_;
require network;
network::configureNetwork2($o, $o->{prefix}, $o->{netc}, $o->{intf});
- $o->{netcnx} ||= 'lan';
+ if ($o->{method} eq "ftp" || $o->{method} eq "http" || $o->{method} eq "nfs") {
+ my $prefix = $o->{prefix};
+ my ($connect_file, $disconnect_file, $connect_prog) =
+ ("/etc/sysconfig/network-scripts/net_cnx_up", "/etc/sysconfig/network-scripts/net_cnx_down", "/etc/sysconfig/network-scripts/net_cnx_pg");
+ $o->{netcnx}{type}='lan';
+ output "$prefix$connect_file",
+ qq(
+ifup eth0
+);
+ output "$prefix$disconnect_file",
+ qq(
+ifdown eth0
+);
+ chmod 0755, "$prefix$disconnect_file";
+ chmod 0755, "$prefix$connect_file";
+ }
}
#------------------------------------------------------------------------------