diff options
-rw-r--r-- | lib/network/connection/cellular_card.pm | 8 |
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} ? |