diff options
author | James Rayner <james@archlinux.org> | 2009-05-18 08:59:34 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2009-05-18 08:59:34 +0200 |
commit | bb3bade410cbfb4d19b65884b6525be7603dd686 (patch) | |
tree | d0defa7cffdfcbc084bf2124b661de249f8e79a9 /src/8021x | |
parent | 92d6bde2e758466c5e524f84e424b7a98c749863 (diff) | |
download | netctl-bb3bade410cbfb4d19b65884b6525be7603dd686.tar.gz netctl-bb3bade410cbfb4d19b65884b6525be7603dd686.tar.xz |
wireless: check if iface is real, stop wpa_supplicant on failures
Diffstat (limited to 'src/8021x')
-rw-r--r-- | src/8021x | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -34,3 +34,13 @@ start_wpa() return 1 fi } + +stop_wpa() +{ + wpa_cli terminate &> /dev/null + if [[ -f /var/run/wpa_supplicant_$1.pid ]]; then + kill $(cat /var/run/wpa_supplicant_$1.pid) &>/dev/null & + fi +} + +# vim: set ts=4 et sw=4 ft=sh: |