diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-09-14 07:35:07 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-09-14 07:35:07 +0000 |
commit | a1a03584ae73aece691aef507a43e1cffa668119 (patch) | |
tree | 8f8a8aada36c6129984f455608d3c881908590ae /perl-install/network | |
parent | 87aae67e25fa2a19590f7e1ae35f0b299c47840c (diff) | |
download | drakx-a1a03584ae73aece691aef507a43e1cffa668119.tar drakx-a1a03584ae73aece691aef507a43e1cffa668119.tar.gz drakx-a1a03584ae73aece691aef507a43e1cffa668119.tar.bz2 drakx-a1a03584ae73aece691aef507a43e1cffa668119.tar.xz drakx-a1a03584ae73aece691aef507a43e1cffa668119.zip |
(configureNetwork2) configure eth aliases, needs modules_conf
Diffstat (limited to 'perl-install/network')
-rw-r--r-- | perl-install/network/ethernet.pm | 2 | ||||
-rw-r--r-- | perl-install/network/netconnect.pm | 4 | ||||
-rw-r--r-- | perl-install/network/network.pm | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm index 581606c16..a86bff8de 100644 --- a/perl-install/network/ethernet.pm +++ b/perl-install/network/ethernet.pm @@ -15,7 +15,7 @@ use vars qw(@ISA @EXPORT); sub write_ether_conf { my ($in, $modules_conf, $netcnx, $netc, $intf) = @_; - configureNetwork2($in, $::prefix, $netc, $intf); + configureNetwork2($in, $modules_conf, $::prefix, $netc, $intf); $netc->{NETWORKING} = "yes"; if ($netc->{GATEWAY} || any { $_->{BOOTPROTO} =~ /dhcp/ } values %$intf) { $netcnx->{type} = 'lan'; diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index 4df8a1b06..fb4953e5e 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -193,7 +193,7 @@ sub real_main { } else { undef $netc->{NET_DEVICE}; } - network::network::configureNetwork2($in, $::prefix, $netc, $intf); + network::network::configureNetwork2($in, $modules_conf, $::prefix, $netc, $intf); $network_configured = 1; return "restart" if $need_restart_network && $::isStandalone && !$::expert; return $offer_to_connect->(); @@ -1311,7 +1311,7 @@ Click on Ok to keep your configuration, or cancel to reconfigure your Internet & } # install needed packages: - $network_configured or network::network::configureNetwork2($in, $::prefix, $netc, $intf); + $network_configured or network::network::configureNetwork2($in, $modules_conf, $::prefix, $netc, $intf); $netcnx->{$_} = $netc->{$_} foreach qw(NET_DEVICE NET_INTERFACE); $netcnx->{type} =~ /adsl/ or run_program::rooted($::prefix, "/chkconfig --del adsl 2> /dev/null"); diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm index fdb0c12b1..a578e32f0 100644 --- a/perl-install/network/network.pm +++ b/perl-install/network/network.pm @@ -421,11 +421,12 @@ sub easy_dhcp { #- $intf->{$device}{DEVICE} : DEVICE = $device #- $intf->{$device}{BOOTPROTO} : boot prototype : "bootp" or "dhcp" or "pump" or ... sub configureNetwork2 { - my ($in, $_prefix, $netc, $intf) = @_; + my ($in, $modules_conf, $_prefix, $netc, $intf) = @_; my $etc = "$::prefix/etc"; if (!$::testing) { require network::ethernet; network::ethernet::update_iftab(); + network::ethernet::configure_eth_aliases($modules_conf); $netc->{wireless_eth} and $in->do_pkgs->ensure_binary_is_installed('wireless-tools', 'iwconfig', 'auto'); write_conf("$etc/sysconfig/network", $netc); |