diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-09-06 11:45:07 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-09-06 11:45:07 +0000 |
commit | 0f22d28a5c7cc3f56c252555fe04863f487bf3e8 (patch) | |
tree | 1e0d8f70cc4ec05b8dd323a42bde8134e70ccddf | |
parent | 8841f50912a604e3e4d313a68e979e388b198fe1 (diff) | |
download | drakx-0f22d28a5c7cc3f56c252555fe04863f487bf3e8.tar drakx-0f22d28a5c7cc3f56c252555fe04863f487bf3e8.tar.gz drakx-0f22d28a5c7cc3f56c252555fe04863f487bf3e8.tar.bz2 drakx-0f22d28a5c7cc3f56c252555fe04863f487bf3e8.tar.xz drakx-0f22d28a5c7cc3f56c252555fe04863f487bf3e8.zip |
(ppp_read_conf) override Authentication if it does not contain a digit character,
the empty string exists ...
-rw-r--r-- | perl-install/network/modem.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/modem.pm b/perl-install/network/modem.pm index b9a6603ff..08a4c3d6a 100644 --- a/perl-install/network/modem.pm +++ b/perl-install/network/modem.pm @@ -32,7 +32,7 @@ sub ppp_read_conf { $modem->{device} ||= '/dev/modem'; my %l = getVarsFromSh(get_user_home() . "/.kde/share/config/kppprc"); add2hash(\%l, getVarsFromSh("$::prefix/usr/share/config/kppprc")); - $l{Authentication} = 4 if !exists $l{Authentication}; + $l{Authentication} = 4 if $l{Authentication} !~ /\d/; $modem->{$_} ||= $l{$_} foreach qw(Authentication Gateway IPAddr SubnetMask); $modem->{connection} ||= $l{Name}; $modem->{domain} ||= $l{Domain}; |