Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 807 Bytes

adhoc is a command tool to make your wireless device as an Access Point,
other device such as PC or Notebook can connect network through your wireless device.

first you use adhoc, you must install dnsmasq following:
$ sudo apt-get install dnsmasq
and kill dnsmasq server process after install it:
$ pkill -f dnsmasq

en, don't forget make it executable:
$ chmod +x adhoc

then, run command to start following:
$ sudo ./adhoc wlan0 essid YourNetworkName key YourNetworkAccessPassword start
stop or restart your network, you can run command:
$ sudo ./adhoc wlan0 stop
$ sudo ./adhoc wlan0 restart

of course, you can use adhoc as a system command,
just mv it to /usr/bin or /usr/local/bin:
$ sudo mv adhoc /usr/bin
$ sudo mv adhoc /usr/local/bin