mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
use hostapd's service file to create ap0
This commit is contained in:
parent
6ba20a63e9
commit
c56b9e6510
2 changed files with 1 additions and 8 deletions
|
@ -21,14 +21,6 @@
|
|||
mode: 0644
|
||||
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
|
||||
template:
|
||||
src: hostapd/hostapd.service.j2
|
||||
|
|
|
@ -6,6 +6,7 @@ Before=network.target dhcpcd.service
|
|||
[Service]
|
||||
Type=idle
|
||||
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
|
||||
|
||||
[Install]
|
||||
|
|
Loading…
Reference in a new issue