aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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