dnsmasq: add uci-defaults script for config migration
authorDaniel Golle <daniel@makrotopia.org>
Thu, 9 Jan 2020 13:32:12 +0000 (15:32 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 9 Jan 2020 13:37:53 +0000 (15:37 +0200)
commit6a2855212096d2c486961a0841b037bae4b75de7
tree8f8fa00f6db83e66e7cc79341c870d292ad8082c
parent8f0effc462e2c7467e4056c2cb09d9e1da078088
dnsmasq: add uci-defaults script for config migration

When running sysupgrade from an existing configuration, UCI option
dhcp.@dnsmasq[0].resolvfile needs to be modified in case it has not
been changed from it's original value.
Accomplish that using a uci-defaults script.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/50-dnsmasq-migrate-resolv-conf-auto.sh [new file with mode: 0755]