diff options
author | damien <damien@mandriva.com> | 2002-01-21 16:29:23 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2002-01-21 16:29:23 +0000 |
commit | 252055ec0535dd85feda5aae4d18c5777ca991bd (patch) | |
tree | 43f2ab0e6010e97c08c46da17de75ad5db56f30b | |
parent | 9f4426267d460d9f7bcf91f60892f463144fe8f5 (diff) | |
download | drakx-backup-do-not-use-252055ec0535dd85feda5aae4d18c5777ca991bd.tar drakx-backup-do-not-use-252055ec0535dd85feda5aae4d18c5777ca991bd.tar.gz drakx-backup-do-not-use-252055ec0535dd85feda5aae4d18c5777ca991bd.tar.bz2 drakx-backup-do-not-use-252055ec0535dd85feda5aae4d18c5777ca991bd.tar.xz drakx-backup-do-not-use-252055ec0535dd85feda5aae4d18c5777ca991bd.zip |
fixed network conf in auto install
-rw-r--r-- | perl-install/install_steps.pm | 17 |
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"; + } } #------------------------------------------------------------------------------ |