|
|
|
@ -1142,9 +1142,12 @@ wifi_restart_wpa(){
|
|
|
|
|
WPA_PID=$(ps ax | grep wpa_supplicant | grep " -i ${DEVNAME} " |
|
|
|
|
|
sed -r -e 's/^\ +//g' | cut -d " " -f 1)
|
|
|
|
|
|
|
|
|
|
if [ -n "${WPA_PID}" ]; then
|
|
|
|
|
log "wifi_restart_wpa" "WPA_PID: ${WPA_PID}"
|
|
|
|
|
kill -9 ${WPA_PID}
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
log "wifi_restart_wpa" "no wpa_supplicant is running!!!"
|
|
|
|
|
fi
|
|
|
|
|
wpa_supplicant -B -i ${DEVNAME} -c ${WPA_FILE} -P${WPA_PIDFILE} 2>&1 >/dev/null
|
|
|
|
|
WPA_PID=$(ps ax | grep wpa_supplicant | grep " -i ${DEVNAME}" | \
|
|
|
|
|
sed -r -e 's/^\ +//g' | cut -d " " -f 1 )
|
|
|
|
|