diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-05-15 22:10:04 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-05-15 22:10:04 +0000 |
commit | ec987949cb05f01906983fe1a4cafea0c9dec85d (patch) | |
tree | 47427ba2a1dfa2cafcc4686caad5d8d697fe0aee /lib/network/connection/cellular_card.pm | |
parent | 20e7229a7664a938d5f11e27942b727fb22e51ad (diff) | |
download | drakx-net-ec987949cb05f01906983fe1a4cafea0c9dec85d.tar drakx-net-ec987949cb05f01906983fe1a4cafea0c9dec85d.tar.gz drakx-net-ec987949cb05f01906983fe1a4cafea0c9dec85d.tar.bz2 drakx-net-ec987949cb05f01906983fe1a4cafea0c9dec85d.tar.xz drakx-net-ec987949cb05f01906983fe1a4cafea0c9dec85d.zip |
extract set_ppp_settings functions, to be called to apply network selection only
Diffstat (limited to 'lib/network/connection/cellular_card.pm')
-rw-r--r-- | lib/network/connection/cellular_card.pm | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/network/connection/cellular_card.pm b/lib/network/connection/cellular_card.pm index cd51f8a..4d7c1f5 100644 --- a/lib/network/connection/cellular_card.pm +++ b/lib/network/connection/cellular_card.pm @@ -104,14 +104,8 @@ sub build_peer { #- $self->{access}{peer}->{init} = "comgt -d $dev < $pin_file" } -sub write_settings { +sub set_ppp_settings { my ($self) = @_; - - my $interface = $self->get_interface; - my $pin_file = "/etc/sysconfig/network-scripts/pin-$interface"; - - output_with_perm($pin_file, 0600, $self->{hardware}{pin} . "\n"); - my $cid = 3; $self->{access}{at_commands} = [ "AT+CPIN?", @@ -124,6 +118,14 @@ sub write_settings { "AT+CGATT?", ]; $self->{access}{dial_number} = "*99***$cid#"; +} + +sub write_settings { + my ($self) = @_; + + my $interface = $self->get_interface; + my $pin_file = "/etc/sysconfig/network-scripts/pin-$interface"; + output_with_perm($pin_file, 0600, $self->{hardware}{pin} . "\n"); $self->SUPER::write_settings; } |