summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2004-06-01 16:05:37 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2004-06-01 16:05:37 +0000
commit1f6fd68d6adaec099296c45003b099e8af042da9 (patch)
treed9a80f15533725a31334a49214f59728fa1e45b8 /perl-install/network
parent17014fd9212a661c4725dce7c7f5882a54c4b74c (diff)
downloaddrakx-1f6fd68d6adaec099296c45003b099e8af042da9.tar
drakx-1f6fd68d6adaec099296c45003b099e8af042da9.tar.gz
drakx-1f6fd68d6adaec099296c45003b099e8af042da9.tar.bz2
drakx-1f6fd68d6adaec099296c45003b099e8af042da9.tar.xz
drakx-1f6fd68d6adaec099296c45003b099e8af042da9.zip
s#ppp/peers/adsl#ppp/peers/ppp0#
as we now use ifup-ppp for adsl, it will look for ppp0
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/adsl.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/network/adsl.pm b/perl-install/network/adsl.pm
index 607fb02bc..8795906bf 100644
--- a/perl-install/network/adsl.pm
+++ b/perl-install/network/adsl.pm
@@ -70,14 +70,14 @@ sub adsl_probe_info {
my $pptp_file = "$::prefix/etc/sysconfig/network-scripts/net_cnx_up";
my %pppoe_conf; %pppoe_conf = getVarsFromSh($pppoe_file) if (! defined $adsl_type || $adsl_type eq 'pppoe') && -f $pppoe_file;
my $login = $pppoe_conf{USER};
- foreach (qw(/etc/ppp/peers/adsl /etc/ppp/options /etc/ppp/options.adsl)) {
+ foreach (qw(/etc/ppp/peers/ppp0 /etc/ppp/options /etc/ppp/options.adsl)) {
($login) = map { if_(/^user\s+"([^"]+)"/, $1) } cat_("$::prefix/$_") if !$login && -r "$::prefix/$_";
}
($login) = map { if_(/\sname\s+([^ \n]+)/, $1) } cat_($pptp_file) if (! defined $adsl_type || $adsl_type eq 'pptp') && -r $pptp_file;
my $passwd = passwd_by_login($login);
if (!$netc->{vpi} && !$netc->{vpi} && member($o_adsl_modem, qw(eci speedtouch))) {
($netc->{vpi}, $netc->{vci}) =
- (map { if_(/^.*-vpi\s+(\d+)\s+-vci\s+(\d+)/, map { sprintf("%x", $_) } $1, $2) } cat_("$::prefix/etc/ppp/peers/adsl"));
+ (map { if_(/^.*-vpi\s+(\d+)\s+-vci\s+(\d+)/, map { sprintf("%x", $_) } $1, $2) } cat_("$::prefix/etc/ppp/peers/ppp0"));
}
$pppoe_conf{DNS1} ||= '';
$pppoe_conf{DNS2} ||= '';
@@ -235,7 +235,7 @@ usepeerdns
defaultroute)
);
- output("$::prefix/etc/ppp/peers/adsl",
+ output("$::prefix/etc/ppp/peers/ppp0",
qq(noauth
noipdefault
$modems{$adsl_device}{ppp_options}