stops dhcpcd and wpa_supplicant - Fil Bergamo, 11/21/2016 04:49 PM
suppid=$(pidof wpa_supplicant)
dhcppid=$(pidof dhcpcd)
if ! [ -z $suppid ]; then
killall -SIGINT wpa_supplicant
fi
if ! [ -z $dhcppid ]; then
killall -SIGINT dhcpcd
exit 0