summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-03-28 13:46:58 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-03-28 13:46:58 +0000
commit5d6f488566b2c605757c17944eb97bbc08069527 (patch)
treec579eb783476fa3d9af864bbf4f623a05e9ee5be /lib
parent580c6216fc7d7bdcc0e8ad281346e08c851b6831 (diff)
downloaddrakx-net-5d6f488566b2c605757c17944eb97bbc08069527.tar
drakx-net-5d6f488566b2c605757c17944eb97bbc08069527.tar.gz
drakx-net-5d6f488566b2c605757c17944eb97bbc08069527.tar.bz2
drakx-net-5d6f488566b2c605757c17944eb97bbc08069527.tar.xz
drakx-net-5d6f488566b2c605757c17944eb97bbc08069527.zip
Always running comgt PIN even if PIN is empty (#48837).
Diffstat (limited to 'lib')
-rw-r--r--lib/network/connection/cellular_card.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/network/connection/cellular_card.pm b/lib/network/connection/cellular_card.pm
index d20540c..ccfeba5 100644
--- a/lib/network/connection/cellular_card.pm
+++ b/lib/network/connection/cellular_card.pm
@@ -192,11 +192,7 @@ sub check_device {
sub check_hardware {
my ($self) = @_;
- if ($self->{hardware}{pin}) {
- to_bool(run_program::rooted($::prefix, 'comgt', '>', '/dev/null', '-d', $self->get_control_device, 'PIN'));
- } else {
- to_bool(run_program::rooted($::prefix, 'comgt', '>', '/dev/null', '-d', $self->get_control_device));
- }
+ to_bool(run_program::rooted($::prefix, 'comgt', '>', '/dev/null', '-d', $self->get_control_device, 'PIN'));
}
sub configure_hardware {