summaryrefslogtreecommitdiffstats
path: root/perl-install/network/network.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-09-03 05:11:44 +0000
committerOlivier Blin <oblin@mandriva.org>2004-09-03 05:11:44 +0000
commit614b8d40e2eb43b0dcd0de7462ace0400698300d (patch)
treec5e660240df9264dbdd508f1502ef77540237338 /perl-install/network/network.pm
parentc3c65dc7da655c0df78e0e7c745b847a27d40c99 (diff)
downloaddrakx-614b8d40e2eb43b0dcd0de7462ace0400698300d.tar
drakx-614b8d40e2eb43b0dcd0de7462ace0400698300d.tar.gz
drakx-614b8d40e2eb43b0dcd0de7462ace0400698300d.tar.bz2
drakx-614b8d40e2eb43b0dcd0de7462ace0400698300d.tar.xz
drakx-614b8d40e2eb43b0dcd0de7462ace0400698300d.zip
(configureNetwork2) use key from $intf hash to determine ifcfg
filename (to allow to use weird DEVICE fields, like DEVICE=`/usr/sbin/eaglectrl -i`)
Diffstat (limited to 'perl-install/network/network.pm')
-rw-r--r--perl-install/network/network.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index 15201444d..4a761716a 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -427,7 +427,7 @@ 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-$_->{DEVICE}", $_, $netc, $::prefix) foreach grep { $_->{DEVICE} ne 'ppp0' } values %$intf;
+ write_interface_conf("$etc/sysconfig/network-scripts/ifcfg-$_", $intf->{$_}, $netc, $::prefix) foreach grep { !/^ppp\d+/ } keys %$intf;
add2hosts("$etc/hosts", $netc->{HOSTNAME}, "127.0.0.1") if $netc->{HOSTNAME};
add2hosts("$etc/hosts", "localhost", "127.0.0.1");