hostapd: Fix wlan interfaces not UP/RUNNING

Like wpa_supplicant, hostapd does not automatically UP the interface
when configured. The fix is similar to 5fcdc19a81.

Reported by:	avg
Tested by:	avg
MFC after:	1 week
This commit is contained in:
Cy Schubert 2021-12-13 15:47:51 -08:00
parent 4d78ef3e81
commit 0da2c91e64

View File

@ -12,6 +12,13 @@
name="hostapd"
desc="Authenticator for IEEE 802.11 networks"
command=${hostapd_program}
start_postcmd="hostapd_poststart"
hostapd_poststart() {
ifconfig ${ifn} down
sleep 2
ifconfig ${ifn} up
}
ifn="$2"
if [ -z "$ifn" ]; then