summaryrefslogtreecommitdiffstats
path: root/perl-install/network/ethernet.pm
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2003-05-20 08:54:24 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2003-05-20 08:54:24 +0000
commitacf87105a49fcc937f98f2b21683b80eb7f9c45f (patch)
tree688f979eabfe23ff1dcd86895272201d3fe3c9f1 /perl-install/network/ethernet.pm
parent345faf68599655d8d9101720e863561a78e69717 (diff)
downloaddrakx-acf87105a49fcc937f98f2b21683b80eb7f9c45f.tar
drakx-acf87105a49fcc937f98f2b21683b80eb7f9c45f.tar.gz
drakx-acf87105a49fcc937f98f2b21683b80eb7f9c45f.tar.bz2
drakx-acf87105a49fcc937f98f2b21683b80eb7f9c45f.tar.xz
drakx-acf87105a49fcc937f98f2b21683b80eb7f9c45f.zip
perl_checker compliant
Diffstat (limited to 'perl-install/network/ethernet.pm')
-rw-r--r--perl-install/network/ethernet.pm15
1 files changed, 7 insertions, 8 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm
index a9eedf77e..d1db337f0 100644
--- a/perl-install/network/ethernet.pm
+++ b/perl-install/network/ethernet.pm
@@ -54,7 +54,6 @@ qq(
sub configure_lan {
my ($netcnx, $netc, $intf, $first_time) = @_;
-# $::isInstall and $in->set_help('configureNetworkIP');
configureNetwork($netc, $intf, $first_time) or return;
configureNetwork2($in, $prefix, $netc, $intf);
$netc->{NETWORKING} = "yes";
@@ -122,9 +121,9 @@ I cannot set up this connection type.")) and return;
#- $all_cards : a list of a list ( [eth1, module1], ... , [ethn, modulen]). Pass the ethx as $interface in further call.
#- $device : only returned in case $interface was given it's $interface, but filtered by /eth[0-9+]/ : string : /eth[0-9+]/
sub conf_network_card_backend {
- my ($netc, $intf, $type, $interface, $ipadr, $o_netadr) = @_;
+ my ($netc, $intf, $o_type, $o_interface, $o_ipadr, $o_netadr) = @_;
#-type =static or dhcp
- if (!$interface) {
+ if (!$o_interface) {
my @all_cards = detect_devices::getNet();
my @devs = detect_devices::pcmcia_probe();
@@ -144,14 +143,14 @@ sub conf_network_card_backend {
[$interface, $saved_driver]);
} @all_cards;
}
- $interface =~ /eth[0-9]+/ or die("the interface is not an ethx");
+ $o_interface =~ /eth[0-9]+/ or die("the interface is not an ethx");
- $netc->{NET_DEVICE} = $interface; #- one consider that there is only ONE Internet connection device..
+ $netc->{NET_DEVICE} = $o_interface; #- one consider that there is only ONE Internet connection device..
- @{$intf->{$interface}}{qw(DEVICE BOOTPROTO NETMASK NETWORK ONBOOT)} = ($interface, $type, '255.255.255.0', $o_netadr, 'yes');
+ @{$intf->{$o_interface}}{qw(DEVICE BOOTPROTO NETMASK NETWORK ONBOOT)} = ($o_interface, $o_type, '255.255.255.0', $o_netadr, 'yes');
- $intf->{$interface}{IPADDR} = $ipadr if $ipadr;
- $interface;
+ $intf->{$o_interface}{IPADDR} = $o_ipadr if $o_ipadr;
+ $o_interface;
}
sub go_ethernet {