I configured my raspberrypi as a wifi repeater using
dnsmasq. I did not touch my
/etc/network/interfaces, just added
interface wlan0 static ip_address=192.168.42.1/24
I think I configured
hostapd right (added
/etc/default/hostapd etc.) and it works.
But after a reboot my interface (managed by hostapd) is down. When I restart hostapd, everything works fine again, so I added
sleep 1 && service hostapd restart
/etc/rc.local as a workaround.
What could be the reason?
Is there a better way to fix it?