From eb1a9f53b8aa6ec606b5618c15d08f515a5eb716 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 14 May 2008 18:45:40 +0000 Subject: use hso0 network interface for hso devices --- lib/network/connection/cellular_card.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/network') 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} ? -- cgit v1.2.1