summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-14 18:45:40 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-14 18:45:40 +0000
commiteb1a9f53b8aa6ec606b5618c15d08f515a5eb716 (patch)
treea342bf7ea232fc28e776c66e1c4b8f9bf7a32f33
parentb06a0dc9eef7be3d3cfa2712f152a8a3c22326e0 (diff)
downloaddrakx-net-eb1a9f53b8aa6ec606b5618c15d08f515a5eb716.tar
drakx-net-eb1a9f53b8aa6ec606b5618c15d08f515a5eb716.tar.gz
drakx-net-eb1a9f53b8aa6ec606b5618c15d08f515a5eb716.tar.bz2
drakx-net-eb1a9f53b8aa6ec606b5618c15d08f515a5eb716.tar.xz
drakx-net-eb1a9f53b8aa6ec606b5618c15d08f515a5eb716.zip
use hso0 network interface for hso devices
-rw-r--r--lib/network/connection/cellular_card.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/network/connection/cellular_card.pm b/lib/network/connection/cellular_card.pm
index 8dd1744..06032be 100644
--- a/lib/network/connection/cellular_card.pm
+++ b/lib/network/connection/cellular_card.pm
@@ -18,7 +18,6 @@ sub get_devices() {
@serial, detect_devices::probe_category('network/cellular'), detect_devices::matching_driver('cdc_acm');
}
sub get_metric { 40 }
-sub get_interface() { "ppp0" }
sub get_packages { 'comgt', 'ppp' }
@@ -40,6 +39,13 @@ sub guess_hardware_settings {
$self->{hardware}{pin} ||= chomp_(cat_("/etc/sysconfig/network-scripts/pin-" . $self->get_interface));
}
+sub get_interface {
+ my ($self) = @_;
+ $self->get_driver eq "hso" ?
+ "hso0" :
+ "ppp0";
+}
+
sub get_tty_device {
my ($self) = @_;
$self->{device}{device} ?