summaryrefslogtreecommitdiffstats
path: root/lib/network/connection
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-17 11:24:01 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-17 11:24:01 +0000
commit728b14b82c333c2004d3d8d025424b65fa54f6b0 (patch)
tree4b3a93a60e958f732dfab802ed61af67ba419cee /lib/network/connection
parentcbde16f7efa8d6ac711f379c06c082d4e18744fa (diff)
downloaddrakx-net-728b14b82c333c2004d3d8d025424b65fa54f6b0.tar
drakx-net-728b14b82c333c2004d3d8d025424b65fa54f6b0.tar.gz
drakx-net-728b14b82c333c2004d3d8d025424b65fa54f6b0.tar.bz2
drakx-net-728b14b82c333c2004d3d8d025424b65fa54f6b0.tar.xz
drakx-net-728b14b82c333c2004d3d8d025424b65fa54f6b0.zip
use ttyUSB1 as control device for usbserial devices
Diffstat (limited to 'lib/network/connection')
-rw-r--r--lib/network/connection/cellular_card.pm6
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 }