I've never used a pi as access point so I don't know what software you installed that created that file. Searching this forum for SoftAP yield a few issues whit exactly that file and a few approached to circumvent the re-recreation on reboot.
Hallo,
hatte leider erst heute die Zeit zu testen.
Dnsmasq habe ich deinstalliert.
Ein Paket SoftAp0 existiert nicht. In Netz habe ich aber herausgefunden, dass in
/opt/scripts/boot/am335x_evm.sh mit dem Eintrag wfile="/etc/dnsmasq.d/SoftAp0" wohl ein Dienst gestartet wird. Diese Zeile habe ich auskommentiert und die noch existierende Datei /etc/dnsmasq.d/SoftAp0 gelöscht.
Zum Schluss habe ich noch das von Dir empfohlene sudo pihole -r gefolgt von Repair durchgeführt. Danach sah die Datei /…
Since this is installed on a Beaglebone, it recreates the SoftAP0 file on reboot no matter what you do, even if you comment out the offending sections.
The only way I could get it to stop modifying the file (the duplicate dnsmasq.leases file was causing issues previously) is to use chattr +i to make the file immutable.
In this case, I truncated the file and made it immutable so that the file exists but can't be overwritten by the system. Pihole seems to be working okay now.
There might be more... just search for them.