diff --git a/Makefile b/Makefile index 5d1bfd8..862f446 100644 --- a/Makefile +++ b/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 diff --git a/create_ap.conf b/create_ap.conf new file mode 100644 index 0000000..c3ff0eb --- /dev/null +++ b/create_ap.conf @@ -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 diff --git a/create_ap.service b/create_ap.service index 4b49835..4e8b74f 100644 --- a/create_ap.service +++ b/create_ap.service @@ -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