summaryrefslogtreecommitdiffstats
path: root/perl-install/network/adsl.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-03-07 13:20:27 +0000
committerFrancois Pons <fpons@mandriva.com>2003-03-07 13:20:27 +0000
commitb183a236998defe202371f54b84343881e84514b (patch)
tree54cdd6e45e8f069738c86167836030369788e0ed /perl-install/network/adsl.pm
parent4fda5cfa788013053f15101e0fe10fae50d2193f (diff)
downloaddrakx-backup-do-not-use-b183a236998defe202371f54b84343881e84514b.tar
drakx-backup-do-not-use-b183a236998defe202371f54b84343881e84514b.tar.gz
drakx-backup-do-not-use-b183a236998defe202371f54b84343881e84514b.tar.bz2
drakx-backup-do-not-use-b183a236998defe202371f54b84343881e84514b.tar.xz
drakx-backup-do-not-use-b183a236998defe202371f54b84343881e84514b.zip
fix logical error (flepied).
Diffstat (limited to 'perl-install/network/adsl.pm')
-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 1768ec1dc..9eacb9492 100644
--- a/perl-install/network/adsl.pm
+++ b/perl-install/network/adsl.pm
@@ -76,7 +76,7 @@ sub adsl_ask_info {
my %pppoe_conf; %pppoe_conf = getVarsFromSh($pppoe_file) if $adsl_type =~ /pppoe/ && -f $pppoe_file;
my $login = $pppoe_conf{USER};
foreach (qw(/etc/ppp/peers/adsl /etc/ppp/options /etc/ppp/options.adsl)) {
- next if $login && ! -r "$prefix/$_";
+ next if $login || ! -r "$prefix/$_";
($login) = map { if_(/^user\s+\"([^\"]+)\"/, $1) } cat_("$prefix/$_");
}
($login) = map { if_(/\sname\s+([^ \n]+)/, $1) } cat_($pptp_file) if $adsl_type =~ /pptp/ && -r $pptp_file;