mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
fix script wrappers
Avoid kill-wpa.sh to exit script when sourced and there is no wpa_supplicant connection Avoid false positives on wpa_supplicant detection
This commit is contained in:
parent
0921f6ee32
commit
f5fb475343
2 changed files with 5 additions and 2 deletions
|
@ -11,5 +11,8 @@ then
|
|||
sudo kill -9 $WPA_PID
|
||||
else
|
||||
echo cannot find wpa_supplicant connection to kill
|
||||
exit 1
|
||||
if [[ $_ == $0 ]]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -78,7 +78,7 @@ function search_p2p_capabilities {
|
|||
# show wpa_supplicant command
|
||||
#
|
||||
function show_wpa_supplicant_process {
|
||||
ps -ef | grep wpa_supplican[t]
|
||||
ps -ef | grep "wpa_supplican[t] "
|
||||
}
|
||||
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue