diff options
author | damien <damien@mandriva.com> | 2001-08-27 22:33:16 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2001-08-27 22:33:16 +0000 |
commit | 3748f5a4718f6ec99328ccea1ff161ac191c1f35 (patch) | |
tree | e3d926fc8554ad9a2b0668294e454acbc883ece2 /perl-install/network/network.pm | |
parent | ef63e3c19166bb5e05d8dc47ff492910da0578b5 (diff) | |
download | drakx-3748f5a4718f6ec99328ccea1ff161ac191c1f35.tar drakx-3748f5a4718f6ec99328ccea1ff161ac191c1f35.tar.gz drakx-3748f5a4718f6ec99328ccea1ff161ac191c1f35.tar.bz2 drakx-3748f5a4718f6ec99328ccea1ff161ac191c1f35.tar.xz drakx-3748f5a4718f6ec99328ccea1ff161ac191c1f35.zip |
corrected hwaddr setting and draknet first window display
Diffstat (limited to 'perl-install/network/network.pm')
-rw-r--r-- | perl-install/network/network.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm index deffd0467..012e0db9c 100644 --- a/perl-install/network/network.pm +++ b/perl-install/network/network.pm @@ -113,7 +113,7 @@ sub write_resolv_conf { } sub write_interface_conf { - my ($file, $intf) = @_; + my ($file, $intf, $prefix) = @_; my @ip = split '\.', $intf->{IPADDR}; my @mask = split '\.', $intf->{NETMASK}; @@ -418,7 +418,7 @@ sub configureNetwork2 { $netc->{wireless_eth} and $in->do_pkgs->install('wireless-tools'); write_conf("$etc/sysconfig/network", $netc); write_resolv_conf("$etc/resolv.conf", $netc); - write_interface_conf("$etc/sysconfig/network-scripts/ifcfg-$_->{DEVICE}", $_) foreach grep { $_->{DEVICE} } values %$intf; + write_interface_conf("$etc/sysconfig/network-scripts/ifcfg-$_->{DEVICE}", $_, $prefix) foreach grep { $_->{DEVICE} } values %$intf; add2hosts("$etc/hosts", $netc->{HOSTNAME}, map { $_->{IPADDR} } values %$intf); if (grep { $_->{BOOTPROTO} =~ /^(dhcp)$/ } values %$intf) { |