dnsmasq: add uci-defaults script for config migration
[openwrt/staging/dedeckeh.git] / package / network / services / dnsmasq / files / 50-dnsmasq-migrate-resolv-conf-auto.sh
1 #!/bin/sh
2
3 [ "$(uci get dhcp.@dnsmasq[0].resolvfile)" = "/tmp/resolv.conf.auto" ] && {
4 uci set dhcp.@dnsmasq[0].resolvfile="/tmp/resolv.conf.d/resolv.conf.auto"
5 uci commit dhcp
6 }