diff options
author | makefu <github@syntax-fehler.de> | 2013-06-10 21:21:47 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2013-06-10 21:21:47 +0200 |
commit | 2ffb00bd97e0e8b47dc1def6f47ebc5295107360 (patch) | |
tree | 0afafd90de578294403a96431331f02f85e3377b | |
parent | 8e7e5989f82f9722a52ac79511e3eee0964098dc (diff) |
add check_wpa_supplicant_is_usable
-rw-r--r-- | usr/lib/autowifi/lib/wpa_supplicant | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/lib/autowifi/lib/wpa_supplicant b/usr/lib/autowifi/lib/wpa_supplicant index 28c327e9..a854d7ca 100644 --- a/usr/lib/autowifi/lib/wpa_supplicant +++ b/usr/lib/autowifi/lib/wpa_supplicant @@ -54,3 +54,6 @@ print_wifi_env(){ eval echo ${i}_${count}=\\\"\$"${i}"\\\" done } +wpa_supplicant_is_usable(){ + wpa_cli status >/dev/null 2>&1 +} |