summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/network/connection.pm1
-rw-r--r--lib/network/connection/ppp.pm4
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/network/connection.pm b/lib/network/connection.pm
index 88953f1..6cf3036 100644
--- a/lib/network/connection.pm
+++ b/lib/network/connection.pm
@@ -68,7 +68,6 @@ sub new {
my ($class, $device) = @_;
bless {
device => $device,
- settings => {},
networks => {},
}, $class;
}
diff --git a/lib/network/connection/ppp.pm b/lib/network/connection/ppp.pm
index 37fabb3..287d7bb 100644
--- a/lib/network/connection/ppp.pm
+++ b/lib/network/connection/ppp.pm
@@ -61,7 +61,7 @@ sub get_up_timeout { 20 }
sub build_ifcfg_settings {
my ($self) = @_;
my $modemport = $self->get_tty_device;
- my $settings = put_in_hash($self->{settings}, {
+ my $settings = {
if_($modemport, MODEMPORT => $modemport),
LINESPEED => "115200",
PERSIST => "yes",
@@ -69,7 +69,7 @@ sub build_ifcfg_settings {
#- FIXME: move in network::connection::cellular or network::connection::cellular_card
if_($self->get_interface !~ /^hso/, DEBUG => "yes"),
if_($self->{access}{cid}, CELLULAR_CID => $self->{access}{cid}),
- });
+ };
$self->SUPER::build_ifcfg_settings($settings);
}