Getting wpa_action to run dhclient after wpa_supplicant connects

Jouni Malinen j
Wed Apr 13 09:57:49 PDT 2011

On Wed, Apr 13, 2011 at 12:03:04PM -0400, Pavel Roskin wrote:
> There should be at least one valid statement between "then" and "fi". 
> Just put a colon before the hash mark.
> wpa_supplicant/README should be fixed, but I guess we want something 
> more readable and meaningful there, for instance
> if [ "$CMD" = "DISCONNECTED" ]; then
>      # remove network configuration, if needed
>      SSID=
> fi

Thanks for pointing out the source for this. I looked at
wpa_supplicant/examples/*.sh and did not notice that case. I modified
README to make it somewhat less likely for simple copy-paste to result
in failures.
Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list