summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-11-16 15:38:50 +0000
committerOlivier Blin <oblin@mandriva.org>2005-11-16 15:38:50 +0000
commite2fbd3193ba0ce76419bbe908bb3a50b97f33312 (patch)
tree974c4140e01f9530056f25ce85236521bfa93fa7
parent66dd827e6f1c7133956b46b8c2b1e910534b629c (diff)
downloaddrakx-backup-do-not-use-e2fbd3193ba0ce76419bbe908bb3a50b97f33312.tar
drakx-backup-do-not-use-e2fbd3193ba0ce76419bbe908bb3a50b97f33312.tar.gz
drakx-backup-do-not-use-e2fbd3193ba0ce76419bbe908bb3a50b97f33312.tar.bz2
drakx-backup-do-not-use-e2fbd3193ba0ce76419bbe908bb3a50b97f33312.tar.xz
drakx-backup-do-not-use-e2fbd3193ba0ce76419bbe908bb3a50b97f33312.zip
remember 'restricted' wireless mode
-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");