1 2 3 4 5 6 7 8 9 10
if [[ $UID != 0 ]]; then echo "You must be root." exit -1 fi ifconfig wlan0 down ifconfig wlan0 up /etc/init.d/dhcpcd restart /etc/init.d/wpa_supplicant restart