create_ap

create a nat-ed wifi ap
git clone git://git.2f30.org/create_ap
Log | Files | Refs | README | LICENSE

commit 78adcce38044da819831c36ebf9deb4b4c95d594
parent 984f8e7fc9ea41f82959203238593983b6f4f3fc
Author: oblique <psyberbits@gmail.com>
Date:   Fri, 29 Nov 2013 12:23:27 -0800

Merge pull request #5 from ichpuchtli/systemd-service

Add systemd service
Diffstat:
MREADME.md | 11+++++++++++
Acreate_ap.service | 12++++++++++++
2 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -33,3 +33,14 @@ OR 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 diff --git a/create_ap.service b/create_ap.service @@ -0,0 +1,12 @@ +[Unit] +Description=Create AP Service + +[Service] +Type=simple +ExecStart=/usr/bin/bash create_ap -n -g 10.0.0.1 wlan0 AccessPointSSID +KillSignal=SIGINT +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target