diff --git a/wpa_supplicant/README b/wpa_supplicant/README index 793e21f18..506a90737 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