Project

General

Profile

WiFi works!!! A successful experience. [ SCRIPTS PROVIDED ] » disconnect.sh

stops dhcpcd and wpa_supplicant - Fil Bergamo, 11/21/2016 04:49 PM

 
1
suppid=$(pidof wpa_supplicant)
2
dhcppid=$(pidof dhcpcd)
3

    
4
if ! [ -z $suppid ]; then
5
	killall -SIGINT wpa_supplicant
6
fi
7

    
8
if ! [ -z $dhcppid ]; then
9
	killall -SIGINT dhcpcd
10
fi
11

    
12
exit 0
(5-5/7)