summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-06-10 21:21:47 +0200
committermakefu <github@syntax-fehler.de>2013-06-10 21:21:47 +0200
commit2ffb00bd97e0e8b47dc1def6f47ebc5295107360 (patch)
tree0afafd90de578294403a96431331f02f85e3377b /usr
parent8e7e5989f82f9722a52ac79511e3eee0964098dc (diff)
add check_wpa_supplicant_is_usable
Diffstat (limited to 'usr')
-rw-r--r--usr/lib/autowifi/lib/wpa_supplicant3
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
+}