diff options
author | James Rayner <james@archlinux.org> | 2007-11-19 12:36:37 +0100 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2007-11-19 12:36:37 +0100 |
commit | 959ca6896a9286292836fb30cf2490a0b9f53796 (patch) | |
tree | 1c02cbe28a27c72943445daf7ab3ce736207579f /src | |
parent | 38197ef003cf6b71e10606cb8745eda7bf8bbb22 (diff) | |
download | netctl-959ca6896a9286292836fb30cf2490a0b9f53796.tar.gz netctl-959ca6896a9286292836fb30cf2490a0b9f53796.tar.xz |
change -a to &&
Diffstat (limited to 'src')
-rw-r--r-- | src/wireless.subr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wireless.subr b/src/wireless.subr index c1de686..fb81ff5 100644 --- a/src/wireless.subr +++ b/src/wireless.subr @@ -130,9 +130,9 @@ wireless_up() { wep|none) # 'none' security uses iwconfig, like wep, so use same code, minus keysetting. # Use sane default if no alternative is specified - if [[ "$SECURITY" = "wep" -a "$WEP_OPTS" = "" ]]; then + if [[ "$SECURITY" = "wep" && "$WEP_OPTS" = "" ]]; then WEP_OPTS="mode managed essid \"$ESSID\" key open $KEY" - elif [[ "$SECURITY" = "none" -a "$WEP_OPTS" = "" ]]; then + elif [[ "$SECURITY" = "none" && "$WEP_OPTS" = "" ]]; then WEP_OPTS="mode managed essid \"$ESSID\"" fi |