mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
only kill if present
This commit is contained in:
@ -177,7 +177,8 @@ EOF
|
|||||||
|
|
||||||
pkill wpa_supplicant
|
pkill wpa_supplicant
|
||||||
pkill dnsmasq
|
pkill dnsmasq
|
||||||
kill "$(pgrep -f "decryption-webserver")"
|
pid="$(pgrep -f "decryption-webserver")"
|
||||||
|
[[ -n "$pid" ]] && kill "$pid"
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user