diff options
author | Andrea Scarpino <andrea@archlinux.org> | 2009-04-29 01:31:12 +0200 |
---|---|---|
committer | Andrea Scarpino <andrea@archlinux.org> | 2009-04-29 01:31:12 +0200 |
commit | f91fab1f9984ca6c1372169df991280f1fb40ac4 (patch) | |
tree | c23e15ea9660d2bd7d0ba1a39d3b759bdd601d44 /src/connections/wireless | |
parent | 405a2061e571e5ebdbd5167773fd7ca05fcbbd8c (diff) | |
download | netctl-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/wireless | 3 |
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="" |