wpa_cli -a option

Jeff Sadowski jeff_sadowski
Sun Feb 5 09:48:06 PST 2006


ok in my startup script I have the following

 ERR=""
 OUT=`wpa_supplicant -BWw -Dmadwifi -iath0 \
      -c/etc/wpa_supplicant.conf 2>&1` || ERR=OUT
 sleep 2
 if [ "$ERR" = "" ];then
  ERR=not_connected
  while [ "$ERR" != "" ];do
   ERR=""
   OUT=`wpa_cli -iath0 \
        -a/etc/init.d/wpa_cli -B 2>&1` || ERR=OUT
   if [ "$ERR" != "" ];then
    echo -e "$ERR"
    echo trying again in 2 seconds
    sleep 2
   fi
  done
 else
  echo -e "$ERR"
 fi

Is there a better way? rather than erroring out if
wpa_cli doesn't connect right away?

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the Hostap mailing list