From c6f64c7c7cc299f9a7d04eb321e0141ac77eb206 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 20 Feb 2008 17:14:53 +0000 Subject: define network::connection::cellular::network_is_configured to fix crash in netcenter (#36801) --- lib/network/connection/cellular.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.1