vaboro
Regular Contributor
I suspect AdGuardHome. It has an option of redirecting all DNS queries via AdGuardHome as well as choosing AdGuardHome for DNS caching.Something installed on your router has created the '/jffs/scripts/dnsmasq' script which is run instead of the '/usr/sbin/dnsmasq'.
This forces the line '(sleep 10 && /jffs/statsd) &' to be run everytime 'dnsmasq' is run.