mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
Generally, using /jffs/scripts/dnsmasq.postconf is the right way to add custom configuration to dnsmasq on Merlin. However, we have seen many reports that the postconf does not work on their devices. This commit changes how dnsmasq config manipulation is done on Merlin, so it's expected to work on all Merlin devices: - Writing /jffs/scripts/dnsmasq.postconf script - Copy current dnsmasq.conf to /jffs/configs/dnsmasq.conf - Run postconf script directly on /jffs/configs/dnsmasq.conf - Restart dnsmasq This way, the /jffs/configs/dnsmasq.conf will contain both current dnsmasq config, and also custom config added by ctrld, without worrying about conflicting, because configuration was added by postconf. See (1) for more details about custom config files on Merlin. (1) https://github.com/RMerl/asuswrt-merlin.ng/wiki/Custom-config-files