fix: kill NetworkManager's dnsmasq before starting our own

NetworkManager auto-starts its own dnsmasq when creating a hotspot,
which conflicts with our DNS-hijacking dnsmasq on the same interface.
Now kill ALL dnsmasq instances before starting ours.

Made-with: Cursor
This commit is contained in:
stswangzhiping
2026-03-16 11:19:04 +08:00
parent 92906bcd4b
commit 7a80c03028
2 changed files with 9 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
fix: set AP hotspot password to fixed WPA2 PSK "12345678"
fix: kill NetworkManager's dnsmasq before starting our own
Open network was not viable as nmcli generates random password by default.
Use a simple fixed password since the AP is only for short-lived provisioning.
NetworkManager auto-starts its own dnsmasq when creating a hotspot,
which conflicts with our DNS-hijacking dnsmasq on the same interface.
Now kill ALL dnsmasq instances before starting ours.