From 728b14b82c333c2004d3d8d025424b65fa54f6b0 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Sat, 17 May 2008 11:24:01 +0000 Subject: use ttyUSB1 as control device for usbserial devices --- lib/network/connection/cellular_card.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/network/connection') 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 } -- cgit v1.2.1