From 23a45705bb6dc54ae9cfce287c72c362b094dd94 Mon Sep 17 00:00:00 2001 From: Florin Grad Date: Mon, 3 Mar 2003 19:35:08 +0000 Subject: add an extra first choose the net device step --- perl-install/standalone/drakgw | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/standalone/drakgw b/perl-install/standalone/drakgw index 5517ba53e..d6da474c0 100755 --- a/perl-install/standalone/drakgw +++ b/perl-install/standalone/drakgw @@ -198,9 +198,20 @@ my @configured_devices = map { /ifcfg-(\S+)/ } glob('/etc/sysconfig/network-scri my %aliased_devices; /^\s*alias\s+(eth[0-9])\s+(\S+)/ and $aliased_devices{$1} = $2 foreach cat_("/etc/modules.conf"); -my $card_netconnect = network::netconnect::get_net_device(); +my $card_netconnect = network::netconnect::get_net_device() ? network::netconnect::get_net_device() : "eth0"; defined $card_netconnect and log::l("[drakgw] Information from netconnect: ignore card $card_netconnect"); + $in->ask_from('', + N("Please enter the name of the interface connected to the internet. + +Examples: + ppp+ for modem or DSL connections, + eth0, or eth1 for cable connection, + ippp+ for a isdn connection. +", $card_netconnect), + [ { label => N("Net Device"), val => \$card_netconnect, type => 'entry' } ]) + or goto step_warning_already_conf; + my @cards = grep { log::l("[drakgw] Have network card: $_"); $_ ne $card_netconnect -- cgit v1.2.1