summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-07-28 08:46:11 +0000
committerOlivier Blin <oblin@mandriva.org>2004-07-28 08:46:11 +0000
commita93c6d9af9e7b5ad2bce9f4bb729c753bcfbaf06 (patch)
treed64ed2d7830570fa97202597e9560c1a53082016 /perl-install
parent6e80c61013523e69942bcf46d5add49bd115410c (diff)
downloaddrakx-a93c6d9af9e7b5ad2bce9f4bb729c753bcfbaf06.tar
drakx-a93c6d9af9e7b5ad2bce9f4bb729c753bcfbaf06.tar.gz
drakx-a93c6d9af9e7b5ad2bce9f4bb729c753bcfbaf06.tar.bz2
drakx-a93c6d9af9e7b5ad2bce9f4bb729c753bcfbaf06.tar.xz
drakx-a93c6d9af9e7b5ad2bce9f4bb729c753bcfbaf06.zip
do not write a blank "pty" option in ppp config file is there is no
pty command (should fix some problems with Bewan modems)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/adsl.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/network/adsl.pm b/perl-install/network/adsl.pm
index 6ddd4f7a4..f8b6ce380 100644
--- a/perl-install/network/adsl.pm
+++ b/perl-install/network/adsl.pm
@@ -242,6 +242,7 @@ usepeerdns
defaultroute)
);
+ my $pty_option = $modems{$adsl_device}{server}{$adsl_type} && "pty $modems{$adsl_device}{server}{$adsl_type}";
output("$::prefix/etc/ppp/peers/ppp0",
qq(noauth
noipdefault
@@ -255,7 +256,7 @@ maxfail 25
persist
usepeerdns
defaultroute
-pty $modems{$adsl_device}{server}{$adsl_type}
+$pty_option
user "$adsl->{login}"
));