From 5d6f488566b2c605757c17944eb97bbc08069527 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Sat, 28 Mar 2009 13:46:58 +0000 Subject: Always running comgt PIN even if PIN is empty (#48837). --- lib/network/connection/cellular_card.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/network/connection') 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 { -- cgit v1.2.1