From 27d8ec71d481a943937ecc4ffc2e16b746d4e34b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 21 Jan 2002 17:58:02 +0000 Subject: cleanup --- perl-install/install_steps.pm | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'perl-install/install_steps.pm') diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index b395a262f..2355023ed 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -584,21 +584,13 @@ sub configureNetwork { my ($o) = @_; require network; network::configureNetwork2($o, $o->{prefix}, $o->{netc}, $o->{intf}); - 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"; + if ($o->{method} =~ /ftp|http|nfs/) { + $o->{netcnx}{type} = 'lan'; + foreach ("up", "down") { + my $f = "$o->{prefix}/etc/sysconfig/network-scripts/net_cnx_$_"; + output $f, "\nif$_ eth0\n"; + chmod 0755, $f; + } } } -- cgit v1.2.1