mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
use hostapd's service file to create ap0
This commit is contained in:
parent
36beb05f71
commit
8e709a92e8
2 changed files with 1 additions and 8 deletions
|
@ -21,14 +21,6 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: discovered_wireless_iface != "none"
|
when: discovered_wireless_iface != "none"
|
||||||
|
|
||||||
- name: Use custom udev rule to create ap0
|
|
||||||
template:
|
|
||||||
src: hostapd/70-persistent-net.rules
|
|
||||||
dest: /etc/udev/rules.d/70-persistent-net.rules
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: 0644
|
|
||||||
|
|
||||||
- name: Use custom systemd unit file to start 'hostapd' service
|
- name: Use custom systemd unit file to start 'hostapd' service
|
||||||
template:
|
template:
|
||||||
src: hostapd/hostapd.service.j2
|
src: hostapd/hostapd.service.j2
|
||||||
|
|
|
@ -6,6 +6,7 @@ Before=network.target dhcpcd.service
|
||||||
[Service]
|
[Service]
|
||||||
Type=idle
|
Type=idle
|
||||||
PIDFile=/run/hostapd.pid
|
PIDFile=/run/hostapd.pid
|
||||||
|
ExecStartPre=/sbin/iw phy phy0 interface add ap0 type __ap
|
||||||
ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid /etc/hostapd/hostapd.conf
|
ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid /etc/hostapd/hostapd.conf
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Loading…
Reference in a new issue