summaryrefslogtreecommitdiffstats
path: root/src/connections
diff options
context:
space:
mode:
Diffstat (limited to 'src/connections')
-rw-r--r--src/connections/wireless12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/connections/wireless b/src/connections/wireless
index d9b457a..5ec555c 100644
--- a/src/connections/wireless
+++ b/src/connections/wireless
@@ -75,11 +75,13 @@ wireless_up() {
case $SECURITY in
wep|none)
# 'none' uses iwconfig like wep. Use sane default if WEP_OPTS=""
- if [[ "$SECURITY" = "wep" ]]; then
- WEP_OPTS="essid \"$ESSID\" key $KEY"
- elif [[ "$SECURITY" = "none" ]]; then
- WEP_OPTS="essid \"$ESSID\""
- fi
+ if [[ -z "$WEP_OPTS" ]]; then
+ if [[ "$SECURITY" = "wep" ]]; then
+ WEP_OPTS="essid \"$ESSID\" key $KEY"
+ elif [[ "$SECURITY" = "none" ]]; then
+ WEP_OPTS="essid \"$ESSID\""
+ fi
+ fi
quirk "predown" && ifconfig $INTERFACE down # madwifi FS#10585