From: Jouni Malinen Date: Wed, 13 Apr 2011 16:55:34 +0000 (+0300) Subject: Make the example action script less likely to result in failures X-Git-Tag: hostap-1-bp~419 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be5b1e86a3644f18f6fcd98a402f211142908443;p=thirdparty%2Fhostap.git Make the example action script less likely to result in failures Use "=" instead of "==" and add an example statement between "then" and "fi". --- 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