Go to file
2013-12-04 15:14:15 +02:00
create_ap Set broadcast ip address 2013-12-02 23:53:38 +02:00
create_ap.service added systemd .service file example 2013-11-29 23:21:10 +10:00
LICENSE Add BSD License 2013-12-04 15:14:15 +02:00
README.md updated README to include systemd service usage 2013-11-30 00:03:34 +10:00

Dependencies

  • bash (to run this script)
  • util-linux (for getopt)
  • hostapd
  • dnsmasq
  • iptables
  • iproute2
  • haveged (optional)

Examples

No passphrase (open network):

./create_ap wlan0 eth0 MyAccessPoint

OR

echo -e "MyAccessPoint" | ./create_ap wlan0 eth0

WPA + WPA2 passphrase:

./create_ap wlan0 eth0 MyAccessPoint MyPassPhrase

OR

echo -e "MyAccessPoint\nMyPassPhrase" | ./create_ap wlan0 eth0

AP without Internet sharing:

./create_ap -n wlan0 MyAccessPoint MyPassPhrase

OR

echo -e "MyAccessPoint\nMyPassPhrase" | ./create_ap -n wlan0

Systemd service

Using the persistent systemd service

Install:

# cp create_ap.service /etc/systemd/system

Start service immediately:

# systemctl start create_ap

Start on boot:

# systemctl enable create_ap