summaryrefslogtreecommitdiffstats
path: root/lib/network/connection/cellular.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-20 17:14:53 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-20 17:14:53 +0000
commitc6f64c7c7cc299f9a7d04eb321e0141ac77eb206 (patch)
treeea672d6bd9e585009ef9b1454840132afc844ac6 /lib/network/connection/cellular.pm
parent0319a38f4a29e3c3c5a82c0385c18cfea4775cdc (diff)
downloaddrakx-net-c6f64c7c7cc299f9a7d04eb321e0141ac77eb206.tar
drakx-net-c6f64c7c7cc299f9a7d04eb321e0141ac77eb206.tar.gz
drakx-net-c6f64c7c7cc299f9a7d04eb321e0141ac77eb206.tar.bz2
drakx-net-c6f64c7c7cc299f9a7d04eb321e0141ac77eb206.tar.xz
drakx-net-c6f64c7c7cc299f9a7d04eb321e0141ac77eb206.zip
define network::connection::cellular::network_is_configured to fix crash in netcenter (#36801)
Diffstat (limited to 'lib/network/connection/cellular.pm')
-rw-r--r--lib/network/connection/cellular.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/network/connection/cellular.pm b/lib/network/connection/cellular.pm
index a9c0d78..60a6000 100644
--- a/lib/network/connection/cellular.pm
+++ b/lib/network/connection/cellular.pm
@@ -24,9 +24,15 @@ sub load_cellular_settings {
-f $file && { getVarsFromSh($file) };
}
+sub network_is_configured {
+ my ($self, $_network) = @_;
+ #- only one network is supported, assume it is configured if settings are available
+ defined($self->load_cellular_settings);
+}
+
sub selected_network_is_configured {
my ($self) = @_;
- defined($self->load_cellular_settings);
+ $self->network_is_configured($network);
}
sub write_cellular_settings {