Merge pull request #189 from NicoHood/patch-1
Made service use a config file by default
This commit is contained in:
2
Makefile
2
Makefile
@ -4,11 +4,13 @@ all:
|
||||
|
||||
install:
|
||||
cp create_ap /usr/bin/create_ap
|
||||
cp create_ap.conf /etc/create_ap.conf
|
||||
[ ! -d /lib/systemd/system ] || cp create_ap.service /lib/systemd/system
|
||||
mkdir -p /usr/share/bash-completion/completions
|
||||
cp bash_completion /usr/share/bash-completion/completions/create_ap
|
||||
|
||||
uninstall:
|
||||
rm /usr/bin/create_ap
|
||||
rm /etc/create_ap.conf
|
||||
[ ! -f /lib/systemd/system/create_ap.service ] || rm /lib/systemd/system/create_ap.service
|
||||
rm /usr/share/bash-completion/completions/create_ap
|
||||
|
25
create_ap.conf
Normal file
25
create_ap.conf
Normal file
@ -0,0 +1,25 @@
|
||||
CHANNEL=default
|
||||
GATEWAY=10.0.0.1
|
||||
WPA_VERSION=1+2
|
||||
ETC_HOSTS=0
|
||||
DHCP_DNS=gateway
|
||||
NO_DNS=0
|
||||
HIDDEN=0
|
||||
ISOLATE_CLIENTS=0
|
||||
SHARE_METHOD=none
|
||||
IEEE80211N=0
|
||||
IEEE80211AC=0
|
||||
HT_CAPAB=[HT40+]
|
||||
VHT_CAPAB=
|
||||
DRIVER=nl80211
|
||||
NO_VIRT=0
|
||||
COUNTRY=
|
||||
FREQ_BAND=2.4
|
||||
NEW_MACADDR=
|
||||
DAEMONIZE=0
|
||||
NO_HAVEGED=0
|
||||
WIFI_IFACE=wlan0
|
||||
INTERNET_IFACE=
|
||||
SSID=AccessPointSSID
|
||||
PASSPHRASE=
|
||||
USE_PSK=0
|
@ -4,7 +4,7 @@ After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/create_ap -n -g 10.0.0.1 wlan0 AccessPointSSID
|
||||
ExecStart=/usr/bin/create_ap --config /etc/create_ap.conf
|
||||
KillSignal=SIGINT
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
Reference in New Issue
Block a user