Skip to content

Instantly share code, notes, and snippets.

@Alir3z4
Created November 7, 2012 12:33
Show Gist options
  • Save Alir3z4/4031355 to your computer and use it in GitHub Desktop.
Save Alir3z4/4031355 to your computer and use it in GitHub Desktop.
sudo ip link set wlan0 down
sudo iwconfig wlan0 channel auto
sudo ip link set wlan0 up
sudo rm /var/run/wpa_supplicant/wlan0
sudo rm -rf /run/dhcpcd-wlan0.pid
sudo wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
#sleep 20
sudo dhcpcd wlan0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment