summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-15 21:59:32 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-15 21:59:32 +0000
commit0f974a903757136323392df22f62d0425792e6f3 (patch)
tree8d1c49eda7b8f3abaa4d5f27f0e47a6f8b57624a /lib
parent4e2a9d48289adbbcf05201ea1f0b576a9ad81eb2 (diff)
downloaddrakx-net-0f974a903757136323392df22f62d0425792e6f3.tar
drakx-net-0f974a903757136323392df22f62d0425792e6f3.tar.gz
drakx-net-0f974a903757136323392df22f62d0425792e6f3.tar.bz2
drakx-net-0f974a903757136323392df22f62d0425792e6f3.tar.xz
drakx-net-0f974a903757136323392df22f62d0425792e6f3.zip
split a write_ppp_settings helper
Diffstat (limited to 'lib')
-rw-r--r--lib/network/connection/ppp.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/network/connection/ppp.pm b/lib/network/connection/ppp.pm
index 0d90d8a..c84c2b1 100644
--- a/lib/network/connection/ppp.pm
+++ b/lib/network/connection/ppp.pm
@@ -128,11 +128,16 @@ sub write_peer {
output_with_perm($::prefix . $peer_file, 0755, join("\n", $self->build_peer, ''));
}
-sub write_settings {
+sub write_ppp_settings {
my ($self) = @_;
$self->write_secrets if $self->{access}{login};
$self->write_chat if $self->{access}{dial_number};
$self->write_peer;
+}
+
+sub write_settings {
+ my ($self) = @_;
+ $self->write_ppp_settings;
$self->network::connection::write_settings;
}