diff options
-rw-r--r-- | lib/network/connection/cellular_card.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/network/connection/cellular_card.pm b/lib/network/connection/cellular_card.pm index 3be4edb..c709649 100644 --- a/lib/network/connection/cellular_card.pm +++ b/lib/network/connection/cellular_card.pm @@ -61,7 +61,11 @@ sub get_tty_device { sub get_control_device { my ($self) = @_; - $self->get_tty_device; + my $tty_device = $self->get_tty_device; + my $usb_control_device = "/dev/ttyUSB1"; + $tty_device eq "/dev/ttyUSB0" && -e $usb_control_device ? + $usb_control_device : + $tty_device; } sub network_scan_is_slow() { 1 } |