summaryrefslogtreecommitdiff
path: root/package/wpa_supplicant/files/wpa_supplicant.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-01-14 18:48:42 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-01-14 18:48:42 +0000
commitf8973238da7e3d59405bc59d7d80dbe81810f6f7 (patch)
tree5a64eaf4c058503ed45693d9c3c8680db54e0329 /package/wpa_supplicant/files/wpa_supplicant.sh
parent0f528002addb8f7e94e57fc09533e0e651d8125b (diff)
downloadmtk-20170518-f8973238da7e3d59405bc59d7d80dbe81810f6f7.zip
mtk-20170518-f8973238da7e3d59405bc59d7d80dbe81810f6f7.tar.gz
mtk-20170518-f8973238da7e3d59405bc59d7d80dbe81810f6f7.tar.bz2
wpa_supplicant: fix two syntax errors in wpa_supplicant.sh (#6504)
SVN-Revision: 19128
Diffstat (limited to 'package/wpa_supplicant/files/wpa_supplicant.sh')
-rw-r--r--package/wpa_supplicant/files/wpa_supplicant.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/wpa_supplicant/files/wpa_supplicant.sh b/package/wpa_supplicant/files/wpa_supplicant.sh
index 40e8ff5..ea10b38 100644
--- a/package/wpa_supplicant/files/wpa_supplicant.sh
+++ b/package/wpa_supplicant/files/wpa_supplicant.sh
@@ -22,7 +22,7 @@ wpa_supplicant_setup_vif() {
local zidx
zidx=$(($idx - 1))
config_get ckey "$vif" "key${idx}"
- if [ -n "$ckey" ] && \
+ [ -n "$ckey" ] && \
append "wep_key${zidx}" "wep_key${zidx}=$(prepare_key_wep "$ckey")"
done
wep_tx_keyidx="wep_tx_keyidx=$((key - 1))"
@@ -111,6 +111,6 @@ network={
$wep_tx_keyidx
}
EOF
- [ -z "$proto" -a "$key_mgmt" != "NONE" ] ||
+ [ -z "$proto" -a "$key_mgmt" != "NONE" ] || \
wpa_supplicant ${bridge:+ -b $bridge} -B -P "/var/run/wifi-${ifname}.pid" -D ${driver:-wext} -i "$ifname" -c /var/run/wpa_supplicant-$ifname.conf
}