lede/package/network/services/dnsmasq/files/50-dnsmasq-migrate-resolv-conf-auto.sh
2020-07-02 23:30:56 +08:00

9 lines
189 B
Bash
Executable File

#!/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