summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-09-23 02:16:21 +0000
committerOlivier Blin <oblin@mandriva.org>2004-09-23 02:16:21 +0000
commit3eb3dbab84018bc762a152c1ccf61ffbd6cc9dc1 (patch)
tree43596d22437fc1eed1330ca6bafdb4b0b80832b5 /perl-install/network
parentce2cad8ca6b36583993bbef1b048326b2b870a99 (diff)
downloaddrakx-3eb3dbab84018bc762a152c1ccf61ffbd6cc9dc1.tar
drakx-3eb3dbab84018bc762a152c1ccf61ffbd6cc9dc1.tar.gz
drakx-3eb3dbab84018bc762a152c1ccf61ffbd6cc9dc1.tar.bz2
drakx-3eb3dbab84018bc762a152c1ccf61ffbd6cc9dc1.tar.xz
drakx-3eb3dbab84018bc762a152c1ccf61ffbd6cc9dc1.zip
(adsl_probe_info) fix old typo, do not reset vpi and vci if vpi is
zero
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/adsl.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/adsl.pm b/perl-install/network/adsl.pm
index 98d4d5516..d484a3d0a 100644
--- a/perl-install/network/adsl.pm
+++ b/perl-install/network/adsl.pm
@@ -73,7 +73,7 @@ sub adsl_probe_info {
($login) = map { if_(/^user\s+"([^"]+)"/, $1) } cat_("$::prefix/$_") if !$login && -r "$::prefix/$_";
}
my $passwd = passwd_by_login($login);
- if (!$netc->{vpi} && !$netc->{vpi} && member($o_adsl_modem, qw(eci speedtouch))) {
+ if (!$netc->{vpi} && !$netc->{vci} && 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/ppp0"));
}