From f91fab1f9984ca6c1372169df991280f1fb40ac4 Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Wed, 29 Apr 2009 01:31:12 +0200 Subject: set SECURITY to none if not set --- src/connections/wireless | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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="" -- cgit v1.2.3-24-g4f1b