mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
setup auto restart of hostapd - based on current stock service file
This commit is contained in:
parent
bccb155523
commit
aab9c1ba87
1 changed files with 4 additions and 2 deletions
|
@ -8,11 +8,13 @@ Before=dhcpcd.service
|
||||||
Before=network.target
|
Before=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=idle
|
Type=forking
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=2
|
||||||
PIDFile=/run/hostapd.pid
|
PIDFile=/run/hostapd.pid
|
||||||
ExecStartPre=-/sbin/iw phy phy0 interface add ap0 type __ap
|
ExecStartPre=-/sbin/iw phy phy0 interface add ap0 type __ap
|
||||||
ExecStartPre=-/sbin/ip link set ap0 address {{ ap0_mac_addr }}
|
ExecStartPre=-/sbin/ip link set ap0 address {{ ap0_mac_addr }}
|
||||||
ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid /etc/hostapd/hostapd.conf
|
ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid /etc/hostapd/hostapd.conf
|
||||||
ExecStartPost=-/sbin/ip link set ap0 up
|
ExecStartPost=-/sbin/ip link set ap0 up
|
||||||
ExecStopPost=-/sbin/iw dev ap0 del
|
ExecStopPost=-/sbin/iw dev ap0 del
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue