From be5b1e86a3644f18f6fcd98a402f211142908443 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 13 Apr 2011 19:55:34 +0300 Subject: [PATCH] Make the example action script less likely to result in failures Use "=" instead of "==" and add an example statement between "then" and "fi". --- wpa_supplicant/README | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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