create_ap/README.md

47 lines
898 B
Markdown
Raw Normal View History

2013-09-28 10:45:59 +03:00
## Dependencies
* bash (to run this script)
* util-linux (for getopt)
* hostapd
* dnsmasq
* iptables
* iproute2
* haveged (optional)
2013-09-28 09:04:52 +03:00
## Examples
### No passphrase (open network):
./create_ap wlan0 eth0 MyAccessPoint
2013-11-17 13:43:50 +02:00
OR
2013-11-17 14:36:36 +02:00
echo -e "MyAccessPoint" | ./create_ap wlan0 eth0
2013-11-17 13:43:50 +02:00
2013-09-28 09:04:52 +03:00
### WPA + WPA2 passphrase:
./create_ap wlan0 eth0 MyAccessPoint MyPassPhrase
2013-11-17 13:43:50 +02:00
OR
echo -e "MyAccessPoint\nMyPassPhrase" | ./create_ap wlan0 eth0
2013-09-28 09:04:52 +03:00
### AP without Internet sharing:
2013-09-28 10:45:59 +03:00
./create_ap -n wlan0 MyAccessPoint MyPassPhrase
2013-11-17 13:43:50 +02:00
OR
echo -e "MyAccessPoint\nMyPassPhrase" | ./create_ap -n wlan0
## Systemd service
Using the persistent [systemd](https://wiki.archlinux.org/index.php/systemd#Basic_systemctl_usage) service
### Install:
# cp create_ap.service /etc/systemd/system
### Start service immediately:
# systemctl start create_ap
### Start on boot:
# systemctl enable create_ap