From b6bfb60fff12cfad855cf63e7abb226956cb21e9 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Tue, 11 Mar 2003 14:43:39 +0000 Subject: changed netcnx type probe (so that if an ethernet connection exists, it won't cause netcnx type to be always lan). --- perl-install/network/network.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/network') diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm index 22d763ea2..b5708fe53 100644 --- a/perl-install/network/network.pm +++ b/perl-install/network/network.pm @@ -480,10 +480,10 @@ sub probe_netcnx_type { #- try to probe $netcnx->{type} which is used almost everywhere. unless ($netcnx->{type}) { #- ugly hack to determine network type (avoid saying not configured in summary). - $intf->{eth0} and $netcnx->{type} ||= 'lan'; - $intf->{ppp0} and $netcnx->{type} ||= 'modem'; -e "$prefix/etc/ppp/peers/adsl" and $netcnx->{type} ||= 'adsl'; # enough ? -e "$prefix/etc/ppp/ioptions1B" || -e "$prefix/etc/ppp/ioptions2B" and $netcnx->{type} ||= 'isdn'; # enough ? + $intf->{ppp0} and $netcnx->{type} ||= 'modem'; + $intf->{eth0} and $netcnx->{type} ||= 'lan'; } } -- cgit v1.2.1