aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2011-04-13 16:55:34 (GMT)
committerJouni Malinen <j@w1.fi>2011-04-13 16:55:34 (GMT)
commitbe5b1e86a3644f18f6fcd98a402f211142908443 (patch)
treea99bbbd0ce6d5431d2a049f6fa45f6d4f8fdb5c7
parentd4a747f0067379e7e995325efdaab03103cd07b1 (diff)
downloadhostap-be5b1e86a3644f18f6fcd98a402f211142908443.zip
hostap-be5b1e86a3644f18f6fcd98a402f211142908443.tar.gz
hostap-be5b1e86a3644f18f6fcd98a402f211142908443.tar.bz2
Make the example action script less likely to result in failures
Use "=" instead of "==" and add an example statement between "then" and "fi".
-rw-r--r--wpa_supplicant/README5
1 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/README b/wpa_supplicant/README
index 793e21f..506a907 100644
--- a/wpa_supplicant/README
+++ b/wpa_supplicant/README
@@ -865,13 +865,14 @@ script:
IFNAME=$1
CMD=$2
-if [ "$CMD" == "CONNECTED" ]; then
+if [ "$CMD" = "CONNECTED" ]; then
SSID=`wpa_cli -i$IFNAME status | grep ^ssid= | cut -f2- -d=`
# configure network, signal DHCP client, etc.
fi
-if [ "$CMD" == "DISCONNECTED" ]; then
+if [ "$CMD" = "DISCONNECTED" ]; then
# remove network configuration, if needed
+ SSID=
fi