From 9d773537474beab8a0f7e47cd0fd61cd9f34e34f Mon Sep 17 00:00:00 2001 From: damien Date: Fri, 10 Aug 2001 20:16:09 +0000 Subject: added spped and timeout handling for isdn --- perl-install/network/netconnect.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'perl-install/network') diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index e5dff7d89..a1fbee552 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -14,7 +14,6 @@ use any; use mouse; use network; use commands; -#require Data::Dumper; use network::tools; use MDK::Common::Globals "network", qw($in $prefix $connect_file $disconnect_file $connect_prog); @@ -31,7 +30,7 @@ sub intro { my $connect_prog = "/etc/sysconfig/network-scripts/net_cnx_pg"; read_net_conf($prefix, $netcnx, $netc); if (!$::isWizard) { - if (connected($netc)) { + if (connected()) { $text=_("You are currently connected to internet.") . (-e $disconnect_file ? _("\nYou can disconnect or reconfigure your connection.") : _("\nYou can reconfigure your connection.")); $connected=1; } else { @@ -361,6 +360,8 @@ ISDNProviderDomain=" . do { $netc->{DOMAINNAME2} =~ /\.(.*)/; $1} . " ISDNProviderDNS1=$netc->{dnsServer2} ISDNProviderDNS2=$netc->{dnsServer3} ISDNDialing=$isdn->{dialing_mode} +ISDNSpeed=$isdn->{speed} +ISDNTimeout=$isdn->{huptimeout} ISDNHomePhone=$isdn->{phone_in} ISDNLogin=$isdn->{login} ISDNPassword=$isdn->{passwd} @@ -500,6 +501,8 @@ sub load_conf { /^ISDNId=(.*)$/ and $isdn->{id} = $1; /^ISDNProviderPhone=(.*)$/ and $isdn->{phone_out} = $1; /^ISDNDialing=(.*)$/ and $isdn->{dialing_mode} = $1; + /^ISDNISDNSpeed=(.*)$/ and $isdn->{speed} = $1; + /^ISDNTimeout=(.*)$/ and $isdn->{huptimeout} = $1; /^ISDNHomePhone=(.*)$/ and $isdn->{phone_in} = $1; /^ISDNLogin=(.*)$/ and $isdn->{login} = $1; /^ISDNPassword=(.*)$/ and $isdn->{passwd} = $1; -- cgit v1.2.1