Skip to content

Instantly share code, notes, and snippets.

@vo
Created June 20, 2010 00:49
Show Gist options
  • Save vo/445447 to your computer and use it in GitHub Desktop.
Save vo/445447 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo service network-manager stop
sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode ad-hoc essid $1 channel 4
sudo ifconfig wlan0 172.17.116.106 netmask 255.255.255.0 up
#!/bin/bash
sudo service network-manager start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment