diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/connection/cellular_bluetooth.pm | 3 | ||||
-rw-r--r-- | lib/network/connection/cellular_card.pm | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/network/connection/cellular_bluetooth.pm b/lib/network/connection/cellular_bluetooth.pm index 6e334ca..80c6cb4 100644 --- a/lib/network/connection/cellular_bluetooth.pm +++ b/lib/network/connection/cellular_bluetooth.pm @@ -73,8 +73,6 @@ sub search_services { sub write_settings { my ($self) = @_; - $self->write_cellular_settings; - my $dev = $self->get_rfcomm_device; output("$::prefix/etc/bluetooth/rfcomm.conf", qq( rfcomm$dev { @@ -89,6 +87,7 @@ rfcomm$dev { $self->{access}{at_commands} = [ qq(AT+CGDCONT=$cid,"IP","$self->{access}{apn}") ]; $self->{access}{dial_number} = "*99***$cid#"; + $self->write_cellular_settings; $self->SUPER::write_settings; } diff --git a/lib/network/connection/cellular_card.pm b/lib/network/connection/cellular_card.pm index 3e50bba..2253a5d 100644 --- a/lib/network/connection/cellular_card.pm +++ b/lib/network/connection/cellular_card.pm @@ -107,8 +107,6 @@ sub build_peer { sub write_settings { my ($self) = @_; - $self->write_cellular_settings; - my $interface = $self->get_interface; my $pin_file = "/etc/sysconfig/network-scripts/pin-$interface"; @@ -127,6 +125,7 @@ sub write_settings { ]; $self->{access}{dial_number} = "*99***$cid#"; + $self->write_cellular_settings; $self->SUPER::write_settings; } |