]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Make the example action script less likely to result in failures
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 13 Apr 2011 16:55:34 +0000 (19:55 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 13 Apr 2011 16:55:34 +0000 (19:55 +0300)
Use "=" instead of "==" and add an example statement between "then"
and "fi".

wpa_supplicant/README

index 793e21f181e2a41728f84920204668061289a125..506a90737c4c09425b6bb90709afb30494a7ce03 100644 (file)
@@ -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