diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-08-20 15:17:08 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-08-20 15:17:08 +0000 |
commit | d73cbb6a10d28d5e4c74b4fde09aeec8dcbbca8d (patch) | |
tree | f03421d3b6849b9fac39725b8c4941a9143be734 /perl-install | |
parent | 96e6c149919e1cc7d7145d0b565612c85ef91919 (diff) | |
download | drakx-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.pm | 6 |
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->(); }, }, |