From 55d3ab2e5ca8885d3f7ff09d42da36c41d70506f Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Tue, 28 Apr 2009 14:54:23 +0200 Subject: [PATCH] set SECURITY to none if not set --- src/connections/wireless | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/connections/wireless b/src/connections/wireless index 8707ed8..a25ad31 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="" -- 1.6.2.4