summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-10-29 13:51:54 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-10-29 13:51:54 +0000
commit446326535e93a3ce47e68e2d4331880ba03fe4c9 (patch)
treed6f987cea7433bba381cb04f7f58d7108501afc2
parent8fe6a00d66a0597e36976f636eb463dcd279ae3f (diff)
downloaddrakx-backup-do-not-use-446326535e93a3ce47e68e2d4331880ba03fe4c9.tar
drakx-backup-do-not-use-446326535e93a3ce47e68e2d4331880ba03fe4c9.tar.gz
drakx-backup-do-not-use-446326535e93a3ce47e68e2d4331880ba03fe4c9.tar.bz2
drakx-backup-do-not-use-446326535e93a3ce47e68e2d4331880ba03fe4c9.tar.xz
drakx-backup-do-not-use-446326535e93a3ce47e68e2d4331880ba03fe4c9.zip
fix installer when network::ethernet wasn't loaded before
-rw-r--r--perl-install/network/network.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index 4d12a1537..8b14a2fae 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -174,6 +174,7 @@ sub write_interface_conf {
$intf->{BOOTPROTO} =~ s/dhcp.*/dhcp/;
+ require network::ethernet;
my %cards = map { $_->[0] => $_->[1] } network::ethernet::conf_network_card_backend($netc, $intf);
setVarsInSh($file, $intf, qw(DEVICE BOOTPROTO IPADDR NETMASK NETWORK BROADCAST ONBOOT HWADDR MII_NOT_SUPPORTED),
if_(is_wireless_intf($cards{$intf->{DEVICE}}), qw(WIRELESS_MODE WIRELESS_ESSID WIRELESS_NWID WIRELESS_FREQ WIRELESS_SENS WIRELESS_RATE WIRELESS_ENC_KEY WIRELESS_RTS WIRELESS_FRAG WIRELESS_IWCONFIG WIRELESS_IWSPY WIRELESS_IWPRIV)),