idev1 / rpihotspot

Raspberry Pi - Hotspot (Access Point and WiFi Client/Station)
MIT License
156 stars 45 forks source link

Failed to start dnsmasq #20

Open Path-A opened 4 years ago

Path-A commented 4 years ago

On a newly imaged pi with the most recent Buster, I get a "Failed to start dnsmasq" on first reboot after running setup-network.sh.

When I enter systemctl status dnsmasq.service, I get the following:

systemd[1]: Starting dnsmasq - A litghtweight DHCP and caching DNS server...
dnsmasq[606]: dnsmasq: synthex check OK.
dnsmasq[607]: dnsmasq: unknown interface uap0
dnsmasq[607]: unknown interface uap0
dnsmasq[607]: Failed to start up
systemd[1]: dnsmasq.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
systemd[1]: Failed to start dnsmasq- A litghtweight DHCP and caching DNS server.
APLtres commented 2 years ago

Hi, I had to change the channel and activate the driver in this config file

sudo nano etc/hostapd/hostapd.conf

I also added this lines...

DAEMON_CONF="/etc/hostapd/hostapd.conf"

into this file

sudo nano etc/default/hostapd