summaryrefslogtreecommitdiffstats
path: root/perl-install/network/adsl.pm
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2001-08-24 01:13:45 +0000
committerdamien <damien@mandriva.com>2001-08-24 01:13:45 +0000
commit08b9c98f8885c81df34e3c527de33164a50006e7 (patch)
tree41b714464cb319c0dc1bad0dc882ed4620b4d0c4 /perl-install/network/adsl.pm
parentc6d1d30e6bec3c43f617427e0029dcc8fb0b67fe (diff)
downloaddrakx-backup-do-not-use-08b9c98f8885c81df34e3c527de33164a50006e7.tar
drakx-backup-do-not-use-08b9c98f8885c81df34e3c527de33164a50006e7.tar.gz
drakx-backup-do-not-use-08b9c98f8885c81df34e3c527de33164a50006e7.tar.bz2
drakx-backup-do-not-use-08b9c98f8885c81df34e3c527de33164a50006e7.tar.xz
drakx-backup-do-not-use-08b9c98f8885c81df34e3c527de33164a50006e7.zip
speedtouch configuration
Diffstat (limited to 'perl-install/network/adsl.pm')
-rw-r--r--perl-install/network/adsl.pm27
1 files changed, 24 insertions, 3 deletions
diff --git a/perl-install/network/adsl.pm b/perl-install/network/adsl.pm
index b12cab169..956de5862 100644
--- a/perl-install/network/adsl.pm
+++ b/perl-install/network/adsl.pm
@@ -47,7 +47,7 @@ If you don't know, choose 'use pppoe'"), [__("use pppoe"), __("use pptp"), __("u
$in->do_pkgs->install(qw(speedtouch));
$netcnx->{type} = "adsl_$type";
$netcnx->{"adsl_$type"} = {};
- $netcnx->{"adsl_$type"}{vcivpi} = '';
+ $netcnx->{"adsl_$type"}{vpivci} = '';
adsl_conf($netcnx->{"adsl_$type"}, $netc, $intf, $type) or goto conf_adsl_step1;
}
1;
@@ -90,13 +90,13 @@ sub adsl_conf_backend {
my ($adsl, $netc, $adsl_type) = @_;
output("$prefix/etc/ppp/options",
-"lock
+'lock
noipdefault
persist
noauth
usepeerdns
defaultroute
-") if $adsl_type =~ /pptp|pppoe|speedtouch/;
+') if $adsl_type =~ /pptp|pppoe|speedtouch/;
write_secret_backend($adsl->{login}, $adsl->{passwd});
@@ -107,6 +107,27 @@ defaultroute
} "$prefix/etc/ppp/pppoe.conf";
}
+ if ($adsl_type eq 'speedtouch') {
+ $netc->{vpivci} =~ /(\d+)\.(\d+)/;
+ output("$prefix/etc/ppp/peers/adsl",
+qq{noauth
+noipdefault
+pty "/usr/bin/pppoa2 -vpi $1 -vci $2"
+sync
+noaccomp
+nopcomp
+noccp
+novj
+holdoff 4
+maxfail 25
+persist
+usepeerdns
+$USERLINE
+defaultroute
+user "$adsl->{login}"
+});
+ }
+
if ($adsl_type eq 'pptp') {
write_cnx_script($netc, "adsl",
"/sbin/route del default