summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/network.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index 3fa1359ed..53ea5d6f5 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -441,7 +441,10 @@ sub configureNetwork2 {
#- symlink resolv.conf in install root too so that updates and suppl media can be added
symlink "$etc/resolv.conf", "/etc/resolv.conf";
}
- write_interface_conf("$etc/sysconfig/network-scripts/ifcfg-$_", $intf->{$_}, $netc, $::prefix) foreach grep { !/^ppp\d+/ } keys %$intf;
+ foreach (grep { !/^ppp\d+/ } keys %$intf) {
+ unlink("$etc/sysconfig/network-scripts/$_");
+ write_interface_conf("$etc/sysconfig/network-scripts/ifcfg-$_", $intf->{$_}, $netc, $::prefix);
+ }
add2hosts("$etc/hosts", $netc->{HOSTNAME}, "127.0.0.1") if $netc->{HOSTNAME};
add2hosts("$etc/hosts", "localhost", "127.0.0.1");