summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2001-08-10 20:16:09 +0000
committerdamien <damien@mandriva.com>2001-08-10 20:16:09 +0000
commit9d773537474beab8a0f7e47cd0fd61cd9f34e34f (patch)
tree05b38b65887c666da028ca5ccb88902e12e68a3b /perl-install
parent98323d762c992c42b48b589a6e44df3e5db11d99 (diff)
downloaddrakx-backup-do-not-use-9d773537474beab8a0f7e47cd0fd61cd9f34e34f.tar
drakx-backup-do-not-use-9d773537474beab8a0f7e47cd0fd61cd9f34e34f.tar.gz
drakx-backup-do-not-use-9d773537474beab8a0f7e47cd0fd61cd9f34e34f.tar.bz2
drakx-backup-do-not-use-9d773537474beab8a0f7e47cd0fd61cd9f34e34f.tar.xz
drakx-backup-do-not-use-9d773537474beab8a0f7e47cd0fd61cd9f34e34f.zip
added spped and timeout handling for isdn
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/netconnect.pm7
1 files changed, 5 insertions, 2 deletions
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;