summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-20 15:17:08 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-20 15:17:08 +0000
commitd73cbb6a10d28d5e4c74b4fde09aeec8dcbbca8d (patch)
treef03421d3b6849b9fac39725b8c4941a9143be734 /perl-install
parent96e6c149919e1cc7d7145d0b565612c85ef91919 (diff)
downloaddrakx-d73cbb6a10d28d5e4c74b4fde09aeec8dcbbca8d.tar
drakx-d73cbb6a10d28d5e4c74b4fde09aeec8dcbbca8d.tar.gz
drakx-d73cbb6a10d28d5e4c74b4fde09aeec8dcbbca8d.tar.bz2
drakx-d73cbb6a10d28d5e4c74b4fde09aeec8dcbbca8d.tar.xz
drakx-d73cbb6a10d28d5e4c74b4fde09aeec8dcbbca8d.zip
(network_on_boot step) do not create ifcfg-ippp0 quite randomly
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/netconnect.pm6
1 files 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->();
},
},