From c136855a7196da06006c010daab5d5d40ec36a01 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 5 Feb 2004 17:44:23 +0000 Subject: enable one to not enter optional parameters (aka relax checks on valid values for bitrate and frequency) (#7432) --- perl-install/network/netconnect.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/network') diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index a409f875e..006c46485 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -898,11 +898,11 @@ See iwpriv(8) man page for further information."), } ], complete => sub { - if ($ethntf->{WIRELESS_FREQ} !~ /[0-9.]*[kGM]/) { + if ($ethntf->{WIRELESS_FREQ} && $ethntf->{WIRELESS_FREQ} !~ /[0-9.]*[kGM]/) { $in->ask_warn(N("Error"), N("Freq should have the suffix k, M or G (for example, \"2.46G\" for 2.46 GHz frequency), or add enough '0' (zeroes).")); return 1, 6; } - if ($ethntf->{WIRELESS_RATE} !~ /[0-9.]*[kGM]/) { + if ($ethntf->{WIRELESS_RATE} && $ethntf->{WIRELESS_RATE} !~ /[0-9.]*[kGM]/) { $in->ask_warn(N("Error"), N("Rate should have the suffix k, M or G (for example, \"11M\" for 11M), or add enough '0' (zeroes).")); return 1, 8; } -- cgit v1.2.1