aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/dnsmasq/files/50-dnsmasq-migrate-resolv-conf-auto.sh
blob: 480e2df4718505e0f5152d1563878efe9d89b67b (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

[ "$(uci get dhcp.@dnsmasq[0].resolvfile)" = "/tmp/resolv.conf.auto" ] && {
	uci set dhcp.@dnsmasq[0].resolvfile="/tmp/resolv.conf.d/resolv.conf.auto"
	uci commit dhcp
}

exit 0