diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-05-15 22:05:12 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-05-15 22:05:12 +0000 |
commit | 20e7229a7664a938d5f11e27942b727fb22e51ad (patch) | |
tree | e8a5655c97ed02697e1cffa65b58394515e16f78 /lib | |
parent | 1b3e50b2d7af1700f89ac6fb46ac54c52c9cc7f5 (diff) | |
download | drakx-net-20e7229a7664a938d5f11e27942b727fb22e51ad.tar drakx-net-20e7229a7664a938d5f11e27942b727fb22e51ad.tar.gz drakx-net-20e7229a7664a938d5f11e27942b727fb22e51ad.tar.bz2 drakx-net-20e7229a7664a938d5f11e27942b727fb22e51ad.tar.xz drakx-net-20e7229a7664a938d5f11e27942b727fb22e51ad.zip |
factorize in network::connection::cellular
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/connection/cellular.pm | 6 | ||||
-rw-r--r-- | lib/network/connection/cellular_bluetooth.pm | 1 | ||||
-rw-r--r-- | lib/network/connection/cellular_card.pm | 1 |
3 files changed, 6 insertions, 2 deletions
diff --git a/lib/network/connection/cellular.pm b/lib/network/connection/cellular.pm index 8a4d0ee..5ecd2f8 100644 --- a/lib/network/connection/cellular.pm +++ b/lib/network/connection/cellular.pm @@ -50,4 +50,10 @@ sub get_access_settings { ]; } +sub write_settings { + my ($self) = @_; + $self->write_cellular_settings; + $self->SUPER::write_settings; +} + 1; diff --git a/lib/network/connection/cellular_bluetooth.pm b/lib/network/connection/cellular_bluetooth.pm index 80c6cb4..77bf964 100644 --- a/lib/network/connection/cellular_bluetooth.pm +++ b/lib/network/connection/cellular_bluetooth.pm @@ -87,7 +87,6 @@ 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 2253a5d..cd51f8a 100644 --- a/lib/network/connection/cellular_card.pm +++ b/lib/network/connection/cellular_card.pm @@ -125,7 +125,6 @@ sub write_settings { ]; $self->{access}{dial_number} = "*99***$cid#"; - $self->write_cellular_settings; $self->SUPER::write_settings; } |