summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-11-14 14:01:38 +0000
committerOlivier Blin <oblin@mandriva.org>2005-11-14 14:01:38 +0000
commit8e680017418ca84e8f8e61510bee27e1d7fd104e (patch)
tree1c356134daef9bc71f02c3860173b6d13f59a1dd /perl-install
parente52ce023e855d0e1a005a908315eab2a886ecaef (diff)
downloaddrakx-8e680017418ca84e8f8e61510bee27e1d7fd104e.tar
drakx-8e680017418ca84e8f8e61510bee27e1d7fd104e.tar.gz
drakx-8e680017418ca84e8f8e61510bee27e1d7fd104e.tar.bz2
drakx-8e680017418ca84e8f8e61510bee27e1d7fd104e.tar.xz
drakx-8e680017418ca84e8f8e61510bee27e1d7fd104e.zip
remember 'restricted' wireless mode
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/drakroam3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/standalone/drakroam b/perl-install/standalone/drakroam
index f428a0164..5511e7646 100755
--- a/perl-install/standalone/drakroam
+++ b/perl-install/standalone/drakroam
@@ -103,8 +103,7 @@ sub configure_ap {
my ($wireless_enc_mode, $wireless_enc_key, $wireless_restricted);
($wireless_enc_key, $wireless_restricted) = network::wireless::get_wep_key_from_iwconfig($wireless_net->{WIRELESS_ENC_KEY});
- #- FIXME: handle restricted
- $wireless_enc_mode = $network->{flags} =~ /wpa/i ? 'wpa-psk' : $network->{flags} =~ /wep/i ? 'open' : 'none';
+ $wireless_enc_mode = $network->{flags} =~ /wpa/i ? 'wpa-psk' : $network->{flags} =~ /wep/i ? $wireless_restricted ? 'restricted' : 'open' : 'none';
my $dhcp = to_bool(!exists($wireless_net->{BOOTPROTO}) || $wireless_net->{BOOTPROTO} eq "dhcp");