summaryrefslogtreecommitdiffstats
path: root/perl-install/network/ethernet.pm
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2003-01-20 18:24:01 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2003-01-20 18:24:01 +0000
commitbb7cb2a72ab19d9c2eeb7cad5b2831e6ad4aa378 (patch)
treed34bc048462a70656e18df78ace4bfc02a942f96 /perl-install/network/ethernet.pm
parent56f0374aa575ae67ca432bd839dc475f975684c2 (diff)
downloaddrakx-backup-do-not-use-bb7cb2a72ab19d9c2eeb7cad5b2831e6ad4aa378.tar
drakx-backup-do-not-use-bb7cb2a72ab19d9c2eeb7cad5b2831e6ad4aa378.tar.gz
drakx-backup-do-not-use-bb7cb2a72ab19d9c2eeb7cad5b2831e6ad4aa378.tar.bz2
drakx-backup-do-not-use-bb7cb2a72ab19d9c2eeb7cad5b2831e6ad4aa378.tar.xz
drakx-backup-do-not-use-bb7cb2a72ab19d9c2eeb7cad5b2831e6ad4aa378.zip
- zero conf is avaible in drakconnect, with/without dhcp
- install tmdns and zcip packages when needed
Diffstat (limited to 'perl-install/network/ethernet.pm')
-rw-r--r--perl-install/network/ethernet.pm20
1 files changed, 5 insertions, 15 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm
index b3e4eb1ee..22bb7b9ec 100644
--- a/perl-install/network/ethernet.pm
+++ b/perl-install/network/ethernet.pm
@@ -17,13 +17,7 @@ sub configure_cable {
my ($netcnx, $netc, $intf, $first_time) = @_;
$::isInstall and $in->set_help('configureNetworkCable');
$netcnx->{type} = 'cable';
- # $netcnx->{cable}={};
- # $in->ask_from_entries_ref(N("Cable connection"),
- # N("Please enter your host name if you know it.
- # Some DHCP servers require the hostname to work.
- # Your host name should be a fully-qualified host name,
- # such as ``mybox.mylab.myco.com''."),
- # [N("Host name:")], [ \$netcnx->{cable}{hostname} ]);
+
if ($::expert) {
my @m = (
{ description => "dhcp-client",
@@ -62,7 +56,7 @@ sub configure_lan {
configureNetwork($netc, $intf, $first_time) or return;
configureNetwork2($in, $prefix, $netc, $intf);
$netc->{NETWORKING} = "yes";
- if ($netc->{GATEWAY} || any { $_->{BOOTPROTO} eq 'dhcp' } values %$intf) {
+ if ($netc->{GATEWAY} || any { $_->{BOOTPROTO} =~ /dhcp/ } values %$intf) {
$netcnx->{type} = 'lan';
$netcnx->{NET_DEVICE} = $netc->{NET_DEVICE} = '';
$netcnx->{NET_INTERFACE} = 'lan'; #$netc->{NET_INTERFACE};
@@ -150,8 +144,7 @@ sub conf_network_card_backend {
my ($device) = $interface =~ /(ADIModem|eth[0-9]+)/ or die("the interface is not an ethx or other (like ADIModem)");
$netc->{NET_DEVICE} = $device; #- one consider that there is only ONE Internet connection device..
- @{$intf->{$device}}{qw(DEVICE BOOTPROTO NETMASK NETWORK ONBOOT)} =
- ($device, $type, '255.255.255.0', $netadr, 'yes');
+ @{$intf->{$device}}{qw(DEVICE BOOTPROTO NETMASK NETWORK ONBOOT)} = ($device, $type, '255.255.255.0', $netadr, 'yes');
$intf->{$device}{IPADDR} = $ipadr if $ipadr;
$device;
@@ -188,12 +181,9 @@ sub configureNetwork {
$last = $intf2;
$n_card++;
}
- #- {
- #- my $wait = $o->wait_message(N("Hostname"), N("Determining host name and domain..."));
- #- network::guessHostname($o->{prefix}, $o->{netc}, $o->{intf});
- #- }
$last or return;
- if ($last->{BOOTPROTO} =~ /^(dhcp|bootp)$/) {
+
+ if ($last->{BOOTPROTO} =~ /dhcp|bootp|zeroconf/) {
$netc->{minus_one} = 1;
$netc->{DHCP} = 1;
my $dhcp_hostname = $netc->{HOSTNAME};