From 218872c637ed0a68625300ff3ce6204893055e42 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Mon, 31 Dec 2018 00:51:29 -0600 Subject: [PATCH] refine hostapd.service --- roles/network/templates/hostapd/hostapd.service.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/network/templates/hostapd/hostapd.service.j2 b/roles/network/templates/hostapd/hostapd.service.j2 index 73500c0f6..5c92483c7 100644 --- a/roles/network/templates/hostapd/hostapd.service.j2 +++ b/roles/network/templates/hostapd/hostapd.service.j2 @@ -6,8 +6,8 @@ Before=network.target dhcpcd.service [Service] Type=idle PIDFile=/run/hostapd.pid -ExecStartPre=/sbin/iw phy phy0 interface add ap0 type __ap 2>1 > /dev/null -ExecStartPre=/sbin/ip link set ap0 address {{ ap0_mac_addr }} 2>1 > /dev/null +ExecStartPre=-/sbin/iw phy phy0 interface add ap0 type __ap +ExecStartPre=-/sbin/ip link set ap0 address {{ ap0_mac_addr }} ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid /etc/hostapd/hostapd.conf [Install]