Enable environment file in hostapd service definition

This commit is contained in:
John W. Linville 2020-12-10 10:13:45 -05:00
parent ec8b44120d
commit d692d381a9
2 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,8 @@ After=network.target
[Service]
Type=forking
PIDFile=/run/hostapd.pid
ExecStart=/usr/sbin/hostapd /etc/hostapd/hostapd.conf -P /run/hostapd.pid -B
EnvironmentFile=/etc/sysconfig/hostapd
ExecStart=/usr/sbin/hostapd /etc/hostapd/hostapd.conf -P /run/hostapd.pid -B $OTHER_ARGS
[Install]
WantedBy=multi-user.target

View File

@ -2,7 +2,7 @@
Name: hostapd
Version: 2.9
Release: 5%{?dist}
Release: 6%{?dist}
Summary: IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
License: BSD
URL: http://w1.fi/hostapd
@ -191,6 +191,9 @@ fi
%{_sysconfdir}/logwatch/scripts/services/%{name}
%changelog
* Thu Dec 10 2020 Johwn W. Linville <linville@redhat.com> - 2.9-6
- Enable environment file in hostapd service definition
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.9-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild