summaryrefslogtreecommitdiffstats
path: root/lib/network/netconnect.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network/netconnect.pm')
-rw-r--r--lib/network/netconnect.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/network/netconnect.pm b/lib/network/netconnect.pm
index 50c6174..a618f0f 100644
--- a/lib/network/netconnect.pm
+++ b/lib/network/netconnect.pm
@@ -173,6 +173,10 @@ sub real_main {
name => sub { $net->{type}->get_type_name . "\n\n" . N("Hardware Configuration") },
data => sub { $hardware_settings },
complete => sub {
+ if ($connection->can("check_hardware_settings") && !$connection->check_hardware_settings) {
+ $in->ask_warn('', $connection->{hardware}{error});
+ return 1;
+ }
if ($connection->can('check_hardware')) {
my $_w = $in->wait_message(N("Please wait"), N("Configuring device..."));
if (!$connection->check_hardware) {