1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-13 02:01:55 +00:00
miraclecast/res/kill-wpa.sh

21 lines
334 B
Bash
Raw Normal View History

#!/bin/bash
2022-10-29 20:42:43 +00:00
DIRNAME=$(dirname $0)
. $DIRNAME/miracle-utils.sh
kill_network_manager
WPA_PID=$(find_wpa_supplicant_pid)
if [ -n "$WPA_PID" ]
then
echo killing existing wpa_supplicant connection
sudo kill -9 $WPA_PID
else
echo cannot find wpa_supplicant connection to kill
if [[ $_ == $0 ]]
then
exit 1
fi
fi