summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-04-25 20:29:19 +0000
committerOlivier Blin <oblin@mandriva.com>2008-04-25 20:29:19 +0000
commit19f29d04c12b0cfa195ce23105099ac491fdc23e (patch)
treef1c85d13fba919a2beed078e66368b62496af41d
parent8ab493dcd145b279cac16273ea7149bec8095f5f (diff)
downloaddrakx-net-19f29d04c12b0cfa195ce23105099ac491fdc23e.tar
drakx-net-19f29d04c12b0cfa195ce23105099ac491fdc23e.tar.gz
drakx-net-19f29d04c12b0cfa195ce23105099ac491fdc23e.tar.bz2
drakx-net-19f29d04c12b0cfa195ce23105099ac491fdc23e.tar.xz
drakx-net-19f29d04c12b0cfa195ce23105099ac491fdc23e.zip
add suport for cdc_acm USB modems in cellular backend
-rw-r--r--lib/network/connection/cellular_card.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/network/connection/cellular_card.pm b/lib/network/connection/cellular_card.pm
index 1e15ec6..7428dd1 100644
--- a/lib/network/connection/cellular_card.pm
+++ b/lib/network/connection/cellular_card.pm
@@ -14,7 +14,8 @@ sub get_devices() {
my @maybe_usbserial_modules = ('usbserial_generic', 'unknown');
my @serial = grep { $_->{description} =~ /GPRS|EDGE|3G|UMTS|H.DPA|CDMA/i } detect_devices::matching_driver('serial_cs', 'usbserial', @maybe_usbserial_modules);
member($_->{driver}, @maybe_usbserial_modules) and $_->{driver} = 'usbserial' foreach @serial;
- @serial, detect_devices::probe_category('network/cellular');
+ #- cdc_acm can not be listed directly in network/cellular, it is already in network/isdn
+ @serial, detect_devices::probe_category('network/cellular'), detect_devices::matching_driver('cdc_acm');
}
sub get_metric { 40 }
sub get_interface() { "ppp0" }
@@ -45,6 +46,8 @@ sub get_tty_device {
"/dev/" . $self->{device}{device} :
$self->get_driver eq "nozomi" ?
"/dev/noz0" :
+ $self->get_driver eq "cdc_acm" ?
+ "/dev/ttyACM0" :
"/dev/ttyUSB0";
}