summaryrefslogtreecommitdiffstats
path: root/src/connections/wireless
diff options
context:
space:
mode:
authorAndrea Scarpino <andrea@archlinux.org>2009-04-29 01:31:12 +0200
committerAndrea Scarpino <andrea@archlinux.org>2009-04-29 01:31:12 +0200
commitf91fab1f9984ca6c1372169df991280f1fb40ac4 (patch)
treec23e15ea9660d2bd7d0ba1a39d3b759bdd601d44 /src/connections/wireless
parent405a2061e571e5ebdbd5167773fd7ca05fcbbd8c (diff)
downloadnetctl-f91fab1f9984ca6c1372169df991280f1fb40ac4.tar.gz
netctl-f91fab1f9984ca6c1372169df991280f1fb40ac4.tar.xz
set SECURITY to none if not set
Diffstat (limited to 'src/connections/wireless')
-rw-r--r--src/connections/wireless3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/connections/wireless b/src/connections/wireless
index 8707ed8..e7e2472 100644
--- a/src/connections/wireless
+++ b/src/connections/wireless
@@ -38,6 +38,9 @@ wireless_up() {
# Manually set iwconfig options
[[ "$IWCONFIG" ]] && iwconfig $INTERFACE $IWCONFIG
+ # Set to 'none' if not set
+ [[ -z "$SECURITY" ]] && SECURITY="none"
+
case $SECURITY in
wep|none)
# 'none' uses iwconfig like wep. Use sane default if WEP_OPTS=""