From d73cbb6a10d28d5e4c74b4fde09aeec8dcbbca8d Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 20 Aug 2004 15:17:08 +0000 Subject: (network_on_boot step) do not create ifcfg-ippp0 quite randomly --- perl-install/network/netconnect.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index fc1fe781e..f52870885 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -1129,10 +1129,8 @@ It is not necessary on most networks."), my ($res) = @_; $netc->{at_boot} = $res; $res = bool2yesno($res); - substInFile { s/^ONBOOT.*\n//; $_ .= qq(ONBOOT=$res\n) if eof } - $netc->{internet_cnx_choice} eq 'adsl' ? - "$::prefix/etc/sysconfig/network-scripts/ifcfg-ppp0" : - "$::prefix/etc/sysconfig/network-scripts/ifcfg-ippp0"; + my $ifcfg_file = "$::prefix/etc/sysconfig/network-scripts/ifcfg-$netc->{NET_INTERFACE}"; + -f $ifcfg_file and substInFile { s/^ONBOOT.*\n//; $_ .= qq(ONBOOT=$res\n) if eof } $ifcfg_file; return $after_start_on_boot_step->(); }, }, -- cgit v1.2.1