15 skipped lines |
|
17 | | 17 | | echo `date` "cnt=$cnt sleep 30s" >> ${WIFI_CONFIG_LOG} |
|
18 | | 18 | | sleep ${WAIT_INTERVAL} |
|
19 | | WPA_STATE=`wpa_cli -i wlan0 status | grep wpa_state | cut -d '=' -f 2` | | 19 | | WPA_STATE=`wpa_cli status | grep wpa_state | cut -d '=' -f 2` |
20 | | 20 | | if [ "${WPA_STATE}" != "COMPLETED" ]; then |
|
21 | | 21 | | if [ -n "${PSK}" ]; then |
|
22 | | 22 | | wifi_cli "${SSID}" "${PSK}" |
|
1 skipped line |
|
|
|
27 | | SSID2=`wpa_cli -i wlan0 status | grep -w ssid | cut -d '=' -f 2` | | 27 | | SSID2=`wpa_cli status | grep -w ssid | cut -d '=' -f 2` |
28 | | 28 | | if [ "${SSID2}" != "${SSID}" ]; then |
|
29 | | 29 | | if [ -n "${PSK}" ]; then |
|
30 | | 30 | | wifi_cli "${SSID}" "${PSK}" |
|
11 skipped lines |